From 8dd34ce9bca3e2fd39a0d049f2d8f5e1602d0f18 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 21 May 2007 19:58:50 +0000 Subject: [PATCH] =?UTF-8?q?MDL-9860=20Incorrect=20check=20for=20password?= =?UTF-8?q?=20expiration=20at=20login=20-=20patch=20by=20I=C3=B1aki=20Aren?= =?UTF-8?q?aza?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index 5f1aa4f2bc4..ce37ba41e0d 100644 --- a/login/index.php +++ b/login/index.php @@ -227,7 +227,7 @@ httpsrequired(); // Currently supported only for ldap-authentication module if (!empty($userauth->config->expiration) and $userauth->config->expiration == 1) { $days2expire = $userauth->password_expire($USER->username); - if (intval($days2expire) > 0 && intval($days2expire) < intval($CFG->{$USER->auth.'_expiration_warning'})) { + if (intval($days2expire) > 0 && intval($days2expire) < intval($userauth->config->expiration_warning)) { print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "
$langmenu
"); notice_yesno(get_string('auth_passwordwillexpire', 'auth', $days2expire), $passwordchangeurl, $urltogo); print_footer();