В форму регистрации и форму повторной отправки Email внедрён валидатор ReCaptcha

This commit is contained in:
ErickSkrauch
2016-08-03 15:57:41 +03:00
parent bef12954bd
commit c2986445f1
3 changed files with 15 additions and 4 deletions

View File

@ -61,7 +61,7 @@ class SignupController extends Controller {
'errors' => $this->normalizeModelErrors($model->getErrors()),
];
if ($response['errors']['email'] === E::RECENTLY_SENT_MESSAGE) {
if (ArrayHelper::getValue($response['errors'], 'email') === E::RECENTLY_SENT_MESSAGE) {
$activation = $model->getActivation();
$response['data'] = [
'canRepeatIn' => $activation->canRepeatIn(),