From 658676adc028cb42a157bcffd1f96d330fcfa5dd Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 2 Dec 2019 15:28:23 +0800 Subject: [PATCH] MDL-66581 auth: Properly assign the link attribute --- lib/authlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authlib.php b/lib/authlib.php index 278bbda7041fb..1d2f972e912a5 100644 --- a/lib/authlib.php +++ b/lib/authlib.php @@ -785,7 +785,7 @@ public function get_password_change_info(stdClass $user) : array { $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 = '';