Register user, login, chg pw, reset pw, view accounts, all work. Can't create a new account yet.
7 lines
223 B
PHP
7 lines
223 B
PHP
<?php
|
|
function generatePassword( $length = 8 ) {
|
|
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:?";
|
|
$password = substr( str_shuffle( $chars ), 0, $length );
|
|
return $password;
|
|
}
|
|
?>
|