diff --git a/CHANGELOG.md b/CHANGELOG.md index b1aa6634..5952922f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Enh: possibility to limit the depth of the recursion when getting user ids from roles (mp1509) - Fix: UserSearch avoid fields name conflict if joined with other tables (liviuk2) - Fix: PasswordExpireService return false when user model attribute "password_changed_at" is already set at null. +- Fix #530: Welcome email: reported Password is now HTML-encoded ## 1.6.1 March 4th, 2023 diff --git a/src/User/resources/views/mail/welcome.php b/src/User/resources/views/mail/welcome.php index 526f0795..8efa10a9 100644 --- a/src/User/resources/views/mail/welcome.php +++ b/src/User/resources/views/mail/welcome.php @@ -27,7 +27,7 @@
= Yii::t('usuario', 'Your account on {0} has been created', Yii::$app->name) ?>. generatePasswords): ?> - = Yii::t('usuario', 'We have generated a password for you') ?>: = $user->password ?> + = Yii::t('usuario', 'We have generated a password for you') ?>: = Html::encode($user->password) ?> allowPasswordRecovery): ?> = Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>: = Html::a(Html::encode(Url::to(['/user/recovery/request'], true)), Url::to(['/user/recovery/request'], true)) ?>