diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-02 02:21:30 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-02 02:21:53 +0100 |
commit | 84f6990db2a4e388e775a9c1465219eb0f6ed164 (patch) | |
tree | 6c430d2cfaa7d6578cb603d1e80fcd3d4399823b /includes/controller/users_controller.php | |
parent | 94b52504145ed5c889093421167306aa7a45d385 (diff) | |
parent | 4a95dfa171dfc6c0b65f36a0417f687bfd40bc97 (diff) |
Merged branch origin/master
Diffstat (limited to 'includes/controller/users_controller.php')
-rw-r--r-- | includes/controller/users_controller.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index 64f725de..3825af7c 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -211,6 +211,7 @@ function users_list_controller() { * Second step of password recovery: set a new password using the token link from email */ function user_password_recovery_set_new_controller() { + global $min_password_length; $user_source = User_by_password_recovery_token($_REQUEST['token']); if ($user_source == null) { error(_("Token is not correct.")); @@ -219,8 +220,8 @@ function user_password_recovery_set_new_controller() { if (isset($_REQUEST['submit'])) { $valid = true; - - if (isset($_REQUEST['password']) && strlen($_REQUEST['password']) >= MIN_PASSWORD_LENGTH) { + + if (isset($_REQUEST['password']) && strlen($_REQUEST['password']) >= $min_password_length) { if ($_REQUEST['password'] != $_REQUEST['password2']) { $valid = false; error(_("Your passwords don't match.")); |