passwordResetToken-text.php 491 Bytes
<?php
use yii\helpers\{
    Url, Html
};

//TODO 1: Разобраться с почтовыми сообщениями.

/* @var $this yii\web\View */
/* @var $user \thread\modules\user\models\User */

$resetLink = Url::toRoute(['/user/password/reset', 'token' => $user->password_reset_token], true);
echo Yii::t('front', 'Hello')
    . ' '
    . Html::encode($user->email) . ', '.'<br>'
    . Yii::t('front', 'Follow the link below to reset your password')
    . ': ' .'<br>'. $resetLink;