From 59addfac07d5587ccf8210e86938d7d31290ada0 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 13 Feb 2016 17:28:47 +0200 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=BF=D0=B5=D1=80=D0=B2=D0=BE=D0=BC?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=B1=D0=BB=D0=B8=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D0=B8=D0=BD=D1=82=D0=B5=D0=B3=D1=80=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=D1=81=D1=8F=20=D1=81=20=D0=B1?= =?UTF-8?q?=D0=B5=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/models/RegistrationForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/RegistrationForm.php b/api/models/RegistrationForm.php index 0926189..0878d4d 100644 --- a/api/models/RegistrationForm.php +++ b/api/models/RegistrationForm.php @@ -18,7 +18,7 @@ class RegistrationForm extends BaseApiForm { public function rules() { 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], ['username', 'filter', 'filter' => 'trim'],