diff --git a/www/change_password/index.php b/www/change_password/index.php index b56568c..dd44f5c 100644 --- a/www/change_password/index.php +++ b/www/change_password/index.php @@ -9,6 +9,7 @@ set_page_access("user"); if (isset($_POST['change_password'])) { + if (!$_POST['password']) { $not_strong_enough = 1; } if ((!is_numeric($_POST['pass_score']) or $_POST['pass_score'] < 3) and $ACCEPT_WEAK_PASSWORDS != TRUE) { $not_strong_enough = 1; } if (preg_match("/\"|'/",$_POST['password'])) { $invalid_chars = 1; } if ($_POST['password'] != $_POST['password_match']) { $mismatched = 1; }