Fix #45 added option to show passwords on emails
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## 1.0.10 - Work In Progress
|
## 1.0.10 - Work In Progress
|
||||||
|
- Enh #45: Added option to display the password to the welcome email (tonydspaniard)
|
||||||
- Fix #44: Check if the password is empty instead for null value (tonydspaniard)
|
- Fix #44: Check if the password is empty instead for null value (tonydspaniard)
|
||||||
- Fix #43: Added Table options according to driver type (tonydspaniard)
|
- Fix #43: Added Table options according to driver type (tonydspaniard)
|
||||||
- Fix #42: Allow setting permissions as children to roles (kurounin)
|
- Fix #42: Allow setting permissions as children to roles (kurounin)
|
||||||
|
|||||||
@ -21,10 +21,11 @@ class MailFactory
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param User $user
|
* @param User $user
|
||||||
|
* @param bool $showPassword
|
||||||
*
|
*
|
||||||
* @return MailService
|
* @return MailService
|
||||||
*/
|
*/
|
||||||
public static function makeWelcomeMailerService(User $user)
|
public static function makeWelcomeMailerService(User $user, $showPassword = false)
|
||||||
{
|
{
|
||||||
/** @var Module $module */
|
/** @var Module $module */
|
||||||
$module = Yii::$app->getModule('user');
|
$module = Yii::$app->getModule('user');
|
||||||
@ -35,7 +36,7 @@ class MailFactory
|
|||||||
'user' => $user,
|
'user' => $user,
|
||||||
'token' => null,
|
'token' => null,
|
||||||
'module' => $module,
|
'module' => $module,
|
||||||
'showPassword' => false,
|
'showPassword' => $showPassword,
|
||||||
];
|
];
|
||||||
|
|
||||||
return static::makeMailerService($from, $to, $subject, 'welcome', $params);
|
return static::makeMailerService($from, $to, $subject, 'welcome', $params);
|
||||||
|
|||||||
Reference in New Issue
Block a user