diff options
author | msquare <msquare@notrademark.de> | 2017-01-02 00:09:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 00:09:18 +0100 |
commit | 29128763fd7f4b1f300fbc7014b9e6608c5d21a4 (patch) | |
tree | 76e495fb3d926df14609c746e08f69fee7134ed8 /includes/pages/user_settings.php | |
parent | a8ab9ccce10fb476dc480de40a49b513f5d505de (diff) | |
parent | 1f8d1eb4bbe9a764fa69a2da936db7adbfb2941e (diff) |
Merge pull request #306 from MyIgel/config-fix-constant
Fixes "Constant already defined" notice
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.")); |