Commit 1cf5e47b by Carsten Brandt

fix broken password reset mail in advanced app

- ensure HTML version is acutally HTML formatted - added valid text version fixes #6814 original issue #6748
parent 8625b482
...@@ -6,9 +6,10 @@ use yii\helpers\Html; ...@@ -6,9 +6,10 @@ use yii\helpers\Html;
$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]); $resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]);
?> ?>
<div class="password-reset">
<p>Hello <?= Html::encode($user->username) ?>,</p>
Hello <?= Html::encode($user->username) ?>, <p>Follow the link below to reset your password:</p>
Follow the link below to reset your password: <p><?= Html::a(Html::encode($resetLink), $resetLink) ?></p>
</div>
<?= Html::a(Html::encode($resetLink), $resetLink) ?>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $user common\models\User */
$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]);
?>
Hello <?= Html::encode($user->username) ?>,
Follow the link below to reset your password:
<?= $resetLink ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment