From 39769b7767743b7d216d833947e761d76707d8a2 Mon Sep 17 00:00:00 2001 From: iarenaza Date: Wed, 3 Jun 2009 14:23:14 +0000 Subject: [PATCH] Password expired change url: MDL-18719 If auth plugin doesn't provide a url, use the standard one. Merged from MOODLE_18_STABLE --- login/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/login/index.php b/login/index.php index da4d187620..0184a375dd 100644 --- a/login/index.php +++ b/login/index.php @@ -175,6 +175,9 @@ if (!empty($userauth->config->expiration) and $userauth->config->expiration == 1) { if ($userauth->can_change_password()) { $passwordchangeurl = $userauth->change_password_url(); + if(!$passwordchangeurl) { + $passwordchangeurl = $CFG->httpswwwroot.'/login/change_password.php'; + } } else { $passwordchangeurl = $CFG->httpswwwroot.'/login/change_password.php'; } -- 2.39.5