-min passwd character limit
This commit is contained in:
parent
23e533aa67
commit
bc28514175
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ if ($action == "addupdate") {
|
|||
$user = new User($id);
|
||||
}
|
||||
|
||||
echo "Enter password: ";
|
||||
$line = trim(fgets(fopen("php://stdin","r")));
|
||||
do{
|
||||
echo "Enter password (min 6 characters): ";
|
||||
$line = trim(fgets(fopen("php://stdin","r")));
|
||||
}while(strlen($line) < 6);
|
||||
$user->setPassword($line);
|
||||
|
||||
do{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue