В первом приближении заинтегрировался с беком

This commit is contained in:
SleepWalker 2016-02-13 17:28:47 +02:00
parent 7e90f1838e
commit 59addfac07

View File

@ -18,7 +18,7 @@ class RegistrationForm extends BaseApiForm {
public function rules() { public function rules() {
return [ return [
['rulesAgreement', 'required', 'message' => 'error.you_must_accept_rules'], ['rulesAgreement', 'boolean', 'message' => 'error.you_must_accept_rules'],
[[], ReCaptchaValidator::class, 'message' => 'error.captcha_invalid', 'when' => !YII_ENV_TEST], [[], ReCaptchaValidator::class, 'message' => 'error.captcha_invalid', 'when' => !YII_ENV_TEST],
['username', 'filter', 'filter' => 'trim'], ['username', 'filter', 'filter' => 'trim'],