mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 15:32:54 +01:00
Fix change empty password with accept weak passwords. (#141)
This commit is contained in:
parent
7af47448a9
commit
9c1a5d0faf
@ -9,6 +9,7 @@ set_page_access("user");
|
|||||||
|
|
||||||
if (isset($_POST['change_password'])) {
|
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 ((!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 (preg_match("/\"|'/",$_POST['password'])) { $invalid_chars = 1; }
|
||||||
if ($_POST['password'] != $_POST['password_match']) { $mismatched = 1; }
|
if ($_POST['password'] != $_POST['password_match']) { $mismatched = 1; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user