mirror of
https://github.com/opensupports/opensupports.git
synced 2025-08-16 07:18:30 +02:00
(Guillermo) code review changes
This commit is contained in:
parent
8fc5ed0e57
commit
5fd68fdc6e
@ -11,15 +11,15 @@ class SignUpController extends Controller {
|
||||
'permission' => 'any',
|
||||
'requestData' => [
|
||||
'name' => [
|
||||
'validation' => DataValidator::length(2, 55),
|
||||
'validation' => DataValidator::length(2, 55)->alpha(),
|
||||
'error' => ERRORS::INVALID_NAME
|
||||
],
|
||||
'email' => [
|
||||
'validation' => DataValidator::contains('@'),
|
||||
'validation' => DataValidator::email(),
|
||||
'error' => ERRORS::INVALID_EMAIL
|
||||
],
|
||||
'password' => [
|
||||
'validation' => DataValidator::length(5, 20),
|
||||
'validation' => DataValidator::length(5, 200),
|
||||
'error' => ERRORS::INVALID_PASSWORD
|
||||
]
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user