Permalink
Browse files

Password expired change url: MDL-18719 If auth plugin doesn't provide…

… a url, use the standard one.
  • Loading branch information...
iarenaza
iarenaza committed Jun 3, 2009
1 parent 5616de9 commit dddb223c232d42849654b32175926bbffbe1770b
Showing with 3 additions and 0 deletions.
  1. +3 −0 login/index.php
View
@@ -172,6 +172,9 @@
if ($userauth->can_change_password()) {
if ($userauth->change_password_url()) {
$passwordchangeurl = $userauth->change_password_url();
+ if(!$passwordchangeurl) {
+ $passwordchangeurl = $CFG->httpswwwroot.'/login/change_password.php';
+ }
} else {
$passwordchangeurl = $CFG->httpswwwroot.'/login/change_password.php';
}

0 comments on commit dddb223

Please sign in to comment.