админка
This commit is contained in:
@@ -19,6 +19,7 @@ class RegisterGameAccountRequest extends FormRequest
|
||||
return [
|
||||
'username' => ['required', 'string', 'min:3', 'max:32', 'regex:/^[A-Za-z0-9]+$/'],
|
||||
'email' => ['required', 'string', 'email:rfc', 'max:255'],
|
||||
'invite_code' => ['required', 'string', 'min:6', 'max:32'],
|
||||
'password' => ['required', 'string', 'min:8', 'max:32', 'confirmed', 'regex:/^(?=.*[A-Za-z])(?=.*\d).+$/'],
|
||||
'terms' => ['accepted'],
|
||||
];
|
||||
@@ -39,6 +40,10 @@ class RegisterGameAccountRequest extends FormRequest
|
||||
'email.string' => 'Email должен быть строкой.',
|
||||
'email.email' => 'Укажи корректный email адрес.',
|
||||
'email.max' => 'Email не должен быть длиннее 255 символов.',
|
||||
'invite_code.required' => 'Укажи инвайт-код.',
|
||||
'invite_code.string' => 'Инвайт-код должен быть строкой.',
|
||||
'invite_code.min' => 'Инвайт-код выглядит слишком коротким.',
|
||||
'invite_code.max' => 'Инвайт-код выглядит слишком длинным.',
|
||||
'password.required' => 'Укажи пароль.',
|
||||
'password.string' => 'Пароль должен быть строкой.',
|
||||
'password.min' => 'Пароль должен содержать минимум 8 символов.',
|
||||
@@ -57,6 +62,7 @@ class RegisterGameAccountRequest extends FormRequest
|
||||
return [
|
||||
'username' => 'логин аккаунта',
|
||||
'email' => 'email',
|
||||
'invite_code' => 'инвайт-код',
|
||||
'password' => 'пароль',
|
||||
'terms' => 'правила',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user