From edd82a22c0734be5d0c820a259462d57190b11cd Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 21 May 2007 20:00:10 +0000 Subject: [PATCH] =?utf8?q?MDL-9860=20Incorrect=20check=20for=20password=20?= =?utf8?q?expiration=20at=20login=20-=20patch=20by=20I=C3=B1aki=20Arenaza;?= =?utf8?q?=20merged=20from=20MOODLE=5F18=5FSTABLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 8c64841472..a4cb4f09e1 100644 --- a/login/index.php +++ b/login/index.php @@ -223,7 +223,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(); -- 2.39.5