Merge pull request #497 from eluhr/feature/fix-password-recovery-url
Fixed password recovery link in welcome mail
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## dev
|
||||||
|
|
||||||
|
- Fix: use correct password recovery url in welcome mail and add functionality to plain text version of the mail (@eluhr)
|
||||||
|
|
||||||
## 1.6.0 January 9, 2023
|
## 1.6.0 January 9, 2023
|
||||||
|
|
||||||
**WARNING**: this release (long time due) makes a step forward in PHP
|
**WARNING**: this release (long time due) makes a step forward in PHP
|
||||||
|
|||||||
@ -15,6 +15,9 @@
|
|||||||
* @var \Da\User\Module $module
|
* @var \Da\User\Module $module
|
||||||
* @var bool $showPassword
|
* @var bool $showPassword
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use yii\helpers\Url;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?= Yii::t('usuario', 'Hello') ?>,
|
<?= Yii::t('usuario', 'Hello') ?>,
|
||||||
|
|
||||||
@ -23,6 +26,10 @@
|
|||||||
<?= Yii::t('usuario', 'We have generated a password for you') ?>:
|
<?= Yii::t('usuario', 'We have generated a password for you') ?>:
|
||||||
<?= $user->password ?>
|
<?= $user->password ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<?php if ($module->allowPasswordRecovery): ?>
|
||||||
|
<?= Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>:
|
||||||
|
<?= Url::to(['/user/recovery/request'], true) ?>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($token !== null): ?>
|
<?php if ($token !== null): ?>
|
||||||
<?= Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
|
<?= Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
|
||||||
|
|||||||
@ -30,7 +30,7 @@ use yii\helpers\Url;
|
|||||||
<?= Yii::t('usuario', 'We have generated a password for you') ?>: <strong><?= $user->password ?></strong>
|
<?= Yii::t('usuario', 'We have generated a password for you') ?>: <strong><?= $user->password ?></strong>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($module->allowPasswordRecovery): ?>
|
<?php if ($module->allowPasswordRecovery): ?>
|
||||||
<?= Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>: <strong><?= Html::a(Html::encode(Url::to(['/user/forgot'], true)), Url::to(['/user/forgot'], true)) ?></strong>
|
<?= Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>: <strong><?= Html::a(Html::encode(Url::to(['/user/recovery/request'], true)), Url::to(['/user/recovery/request'], true)) ?></strong>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user