From bc28514175f7d53b8c56687be464284505e076d4 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 22 Feb 2011 19:04:35 -0500 Subject: [PATCH] -min passwd character limit --- install/airtime-user.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/airtime-user.php b/install/airtime-user.php index 3ccb17462..6e0cca3a0 100644 --- a/install/airtime-user.php +++ b/install/airtime-user.php @@ -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{