Skip to content

Commit

Permalink
MDL-45814 login: don't prompt guest user to change password
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Nov 3, 2015
1 parent 821ab27 commit 7a89772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login/index.php
Expand Up @@ -205,7 +205,7 @@
/// check if user password has expired /// check if user password has expired
/// Currently supported only for ldap-authentication module /// Currently supported only for ldap-authentication module
$userauth = get_auth_plugin($USER->auth); $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()) { if ($userauth->can_change_password()) {
$passwordchangeurl = $userauth->change_password_url(); $passwordchangeurl = $userauth->change_password_url();
if (!$passwordchangeurl) { if (!$passwordchangeurl) {
Expand Down

0 comments on commit 7a89772

Please sign in to comment.