Permalink
Browse files

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

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

0 comments on commit 7a89772

Please sign in to comment.