Permalink
Browse files

MDL-45814 login: don't prompt guest user to change password

  • Loading branch information...
danpoltawski committed Nov 3, 2015
1 parent c12979c commit 56272bb56d41ce8e53cdb00ff38e6b2f4ba79c06
Showing with 1 addition and 1 deletion.
  1. +1 −1 login/index.php
View
@@ -199,7 +199,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) {

0 comments on commit 56272bb

Please sign in to comment.