MDL-66581 auth: Properly assign the link attribute

This commit is contained in:
Jun Pataleta
2019-12-02 15:28:23 +08:00
parent befbe2838f
commit 658676adc0
+1 -1
View File
@@ -785,7 +785,7 @@ class auth_plugin_base {
$USER = $user;
if ($this->can_change_password() and $this->change_password_url()) {
// We have some external url for password changing.
$data->link .= $this->change_password_url();
$data->link = $this->change_password_url()->out();
} else {
// No way to change password, sorry.
$data->link = '';