2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
292 stars 141 forks source link

Properties `allowPasswordRecovery` and `allowAdminPasswordRecovery` must be undepended #247

Open bscheshirwork opened 5 years ago

bscheshirwork commented 5 years ago

What steps will reproduce the problem?

If allowPasswordRecovery = true the admin can't reset user password. This is terrible.

What is the expected result?

Display "reset" button any time if allowAdminPasswordRecovery = true

What do you get instead?

!$module->allowPasswordRecovery && $module->allowAdminPasswordRecovery

https://github.com/2amigos/yii2-usuario/blob/23b95160547be5ecdd671581373e9ca071bbb774/src/User/resources/views/admin/index.php#L154-L171

tonydspaniard commented 5 years ago

What do you propose @bscheshirwork ? Remove allowPasswordRecovery and allow the admin to control the password reset?

bscheshirwork commented 5 years ago

@tonydspaniard see #252