yiicod/yii2-auth

View on GitHub
mail/passwordResetToken.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
use yii\helpers\Html;

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

$resetLink = yii\helpers\Url::toRoute(['reset-password', 'token' => $user->passwordResetToken], true);
?>

Hello,

Follow the link below to reset your password:

<?php echo Html::a('Reset password', $resetLink); ?>