Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen <ben.burgess@innocraft.com>2022-06-21 04:47:25 +0300
committerBen <ben.burgess@innocraft.com>2022-06-21 04:47:25 +0300
commit472bd0ff0d4d881042367eb43ef8f3ba85897898 (patch)
treef88c5e2f3f575bb2d662a1574438977e5ed9d5c5
parentab0d0f78d07170bc2b6333aa3ff343859f41c17f (diff)
Add <a> tag for reset linkm-19354-broken-reset-link
-rw-r--r--plugins/Login/Emails/PasswordResetEmail.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Login/Emails/PasswordResetEmail.php b/plugins/Login/Emails/PasswordResetEmail.php
index 1b1a140aac..dbbff22b24 100644
--- a/plugins/Login/Emails/PasswordResetEmail.php
+++ b/plugins/Login/Emails/PasswordResetEmail.php
@@ -78,8 +78,12 @@ class PasswordResetEmail extends Mail
{
return '<p>' . str_replace(
"\n\n",
- "</p><p style='word-break: break-all'>",
- $this->getDefaultBodyText()
+ "</p><p>",
+ Piwik::translate('Login_MailPasswordChangeBody2',
+ [Common::sanitizeInputValue($this->login),
+ Common::sanitizeInputValue($this->ip),
+ '<p style="word-break: break-all"><a href="'.Common::sanitizeInputValue($this->resetUrl).'">'.
+ Common::sanitizeInputValue($this->resetUrl).'</a></p>'])
) . "</p>";
}
} \ No newline at end of file