fix broken password reset mail in advanced app

- ensure HTML version is acutally HTML formatted
- added valid text version

fixes #6814
original issue #6748
This commit is contained in:
Carsten Brandt
2015-01-10 14:32:23 +01:00
parent 8625b482a9
commit 1cf5e47b55
2 changed files with 18 additions and 4 deletions

View File

@ -6,9 +6,10 @@ use yii\helpers\Html;
$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:
<?= Html::a(Html::encode($resetLink), $resetLink) ?>
<p><?= Html::a(Html::encode($resetLink), $resetLink) ?></p>
</div>

View File

@ -0,0 +1,13 @@
<?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 ?>