Password expired change url: MDL-18719 If auth plugin doesn't provide a url, use the standard one.

This commit is contained in:
iarenaza
2009-06-03 14:20:22 +00:00
parent 5616de934e
commit dddb223c23
+3
View File
@@ -172,6 +172,9 @@ httpsrequired();
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';
}