From 7a89772cfb9891271f9444b795af072776da7fa5 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 3 Nov 2015 14:46:59 +0000 Subject: [PATCH] MDL-45814 login: don't prompt guest user to change password --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index 287d3da71169d..407ba796eb50c 100644 --- a/login/index.php +++ b/login/index.php @@ -205,7 +205,7 @@ /// check if user password has expired /// Currently supported only for ldap-authentication module $userauth = get_auth_plugin($USER->auth); - if (!empty($userauth->config->expiration) and $userauth->config->expiration == 1) { + if (!isguestuser() and !empty($userauth->config->expiration) and $userauth->config->expiration == 1) { if ($userauth->can_change_password()) { $passwordchangeurl = $userauth->change_password_url(); if (!$passwordchangeurl) {