-min passwd character limit

This commit is contained in:
martin 2011-02-22 19:04:35 -05:00
parent 23e533aa67
commit bc28514175

View file

@ -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{