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: Add controller module class reference (TonisOrmisson)
|
||||||
- Enh: Replace the deprecated InvalidParamException in ClassMapHelper (TonisOrmisson)
|
- Enh: Replace the deprecated InvalidParamException in ClassMapHelper (TonisOrmisson)
|
||||||
- Fix #242: Add POST filter for `admin/force-password-change` action (bscheshirwork)
|
- 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)
|
- Fix #254: Rename `GDPR` properties to `lowerCamelCase` style (bscheshirwork)
|
||||||
|
|
||||||
## 1.1.4 - February 19, 2018
|
## 1.1.4 - February 19, 2018
|
||||||
|
|||||||
@ -152,7 +152,7 @@ $module = Yii::$app->getModule('user');
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
'reset' => function ($url, $model) use ($module) {
|
'reset' => function ($url, $model) use ($module) {
|
||||||
if(!$module->allowPasswordRecovery && $module->allowAdminPasswordRecovery) {
|
if($module->allowAdminPasswordRecovery) {
|
||||||
return Html::a(
|
return Html::a(
|
||||||
'<span class="glyphicon glyphicon-flash"></span>',
|
'<span class="glyphicon glyphicon-flash"></span>',
|
||||||
['/user/admin/password-reset', 'id' => $model->id],
|
['/user/admin/password-reset', 'id' => $model->id],
|
||||||
|
|||||||
Reference in New Issue
Block a user