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/pages/user_settings.php | |
parent | 94b52504145ed5c889093421167306aa7a45d385 (diff) | |
parent | 4a95dfa171dfc6c0b65f36a0417f687bfd40bc97 (diff) |
Merged branch origin/master
Diffstat (limited to 'includes/pages/user_settings.php')
-rw-r--r-- | includes/pages/user_settings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index a147b437..e776320f 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -88,9 +88,10 @@ function user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes) { * The user */ function user_settings_password($user_source) { + global $min_password_length; if (! isset($_REQUEST['password']) || ! verify_password($_REQUEST['password'], $user_source['Passwort'], $user_source['UID'])) { error(_("-> not OK. Please try again.")); - } elseif (strlen($_REQUEST['new_password']) < MIN_PASSWORD_LENGTH) { + } elseif (strlen($_REQUEST['new_password']) < $min_password_length) { error(_("Your password is to short (please use at least 6 characters).")); } elseif ($_REQUEST['new_password'] != $_REQUEST['new_password2']) { error(_("Your passwords don't match.")); |