Merge pull request #252 from bscheshirwork/the-admin-can-be-reset-password

Delete check for unexcepted property allowPasswordRecovery
This commit is contained in:
Antonio Ramirez
2018-09-27 19:16:42 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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],