Merge pull request #252 from bscheshirwork/the-admin-can-be-reset-password
Delete check for unexcepted property allowPasswordRecovery
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
- Enh: Add controller module class reference (TonisOrmisson)
|
||||
- Enh: Replace the deprecated InvalidParamException in ClassMapHelper (TonisOrmisson)
|
||||
- Fix #242: Add POST filter for `admin/force-password-change` action (bscheshirwork)
|
||||
- Fix #252: Delete check for unexpected property `allowPasswordRecovery` for resend email by admin (bscheshirwork)
|
||||
- Fix #254: Rename `GDPR` properties to `lowerCamelCase` style (bscheshirwork)
|
||||
|
||||
## 1.1.4 - February 19, 2018
|
||||
|
||||
@ -152,7 +152,7 @@ $module = Yii::$app->getModule('user');
|
||||
return null;
|
||||
},
|
||||
'reset' => function ($url, $model) use ($module) {
|
||||
if(!$module->allowPasswordRecovery && $module->allowAdminPasswordRecovery) {
|
||||
if($module->allowAdminPasswordRecovery) {
|
||||
return Html::a(
|
||||
'<span class="glyphicon glyphicon-flash"></span>',
|
||||
['/user/admin/password-reset', 'id' => $model->id],
|
||||
|
||||
Reference in New Issue
Block a user