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