Close #23 provide administrator with an option for user to reset its

password.
This commit is contained in:
Antonio Ramirez
2017-10-15 23:00:21 +02:00
parent 42301d0fb1
commit 1fa2e5b66d
30 changed files with 130 additions and 11 deletions

View File

@ -123,7 +123,7 @@ class RecoveryController extends Controller
*/
public function actionReset($id, $code)
{
if (!$this->module->allowPasswordRecovery) {
if (!$this->module->allowPasswordRecovery && !$this->module->allowAdminPasswordRecovery) {
throw new NotFoundHttpException();
}
/** @var Token $token */