From 1f8d1eb4bbe9a764fa69a2da936db7adbfb2941e Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 1 Jan 2017 18:49:43 +0100 Subject: Fixed "Constant already defined" notice Added more ugly global variables --- includes/pages/user_settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/pages/user_settings.php') 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.")); -- cgit v1.2.3-54-g00ecf