mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 23:50:19 +05:30
В первом приближении заинтегрировался с беком
This commit is contained in:
parent
7e90f1838e
commit
59addfac07
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user