amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

sendEmailConfirmation - generate only text in the email body #164

Closed fpolito closed 8 years ago

fpolito commented 8 years ago

Hello

I have made some little change in the file ....\mail\confirmEmail.php

in order to generate a link and not a text in the body of the email, so now is faster because you only need to click on the link (instead with your code, the new user has to copy and paste the url)

this is the code:

<?php

use yii\helpers\Html; use yii\helpers\Url;

/**

<h3><?= $subject ?></h3>

<p><?= Yii::t("user", "Please confirm your email address by clicking the link below:") ?></p> <br/> <p><?= Html::a(Url::toRoute(["/user/confirm", "token" => $userToken->token], true), Url::toRoute(["/user/confirm", "token" => $userToken->token], true)) ?></p>


The same improvement should be done in the files:

bye bye Francesco

amnah commented 8 years ago

Thanks for the suggestion!