fix validator bug on recovery controller

This commit is contained in:
Antonio Ramirez
2017-06-15 01:44:58 +02:00
parent 53a3a72cc5
commit 50681953c2
2 changed files with 7 additions and 8 deletions

View File

@ -88,7 +88,7 @@ class RecoveryController extends Controller
$event = $this->make(FormEvent::class, [$form]);
$this->make(AjaxRequestModelValidator::class, $form)->validate();
$this->make(AjaxRequestModelValidator::class, [$form])->validate();
if ($form->load(Yii::$app->request->post())) {
$this->trigger(FormEvent::EVENT_BEFORE_REQUEST, $event);
@ -165,7 +165,7 @@ class RecoveryController extends Controller
'module' => $this->module,
]
);
}
} else {var_dump('SHIT!');}
}
return $this->render('reset', ['model' => $form]);