Skip to content

Commit d31aa77

Browse files
author
Joshua Heller
committed
recovery email format
1 parent 7ab8e51 commit d31aa77

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

controllers/UsrController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ public function sendEmail(\yii\base\Model $model, $mode)
2424
case 'recovery':
2525
case 'verify':
2626
$subject = $mode == 'recovery'
27-
? Yii::t('usr', 'Password recovery')
27+
? Yii::t('usr', 'Finish resetting your Pitcher Admin password')
2828
: Yii::t('usr', 'Email address verification');
2929
$params['actionUrl'] = \yii\helpers\Url::toRoute([
3030
$mode,
3131
'activationKey' => $model->getIdentity()->getActivationKey(),
3232
'username' => $model->getIdentity()->username,
3333
], true);
34+
$params['username'] = $model->getIdentity()->username;
3435
break;
3536
case 'oneTimePassword':
3637
$subject = Yii::t('usr', 'One Time Password');

views/emails/recovery.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<p>
2-
This message contains instructions to perform a password recovery. It was requested on the <?= \yii\helpers\Html::a(Yii::$app->name, $siteUrl); ?>. If you did not performed this request, please ignore this email or contact our administrator.
2+
Pitcher recently received a request to reset the password for the username <?= \yii\helpers\Html::encode($username); ?>. To finish resetting your password, go to the following link. This link expires in 24 hours.
33
</p>
44

5-
<p>To set a new password, open the following link:</p>
65
<p>
7-
<?= \yii\helpers\Html::a($actionUrl, $actionUrl); ?>
6+
<?= \yii\helpers\Html::a($actionUrl, $actionUrl); ?>
87
</p>
8+
99
<p>
10-
If the link does not open correctly, try copying it and pasting in the browser's address bar.
11-
</p>
10+
If you didn't ask for your password to be reset, contact support@pitcher.com.
11+
</p>

0 commit comments

Comments
 (0)