(Guillermo) code review changes

This commit is contained in:
AntonyAntonio 2016-07-19 16:41:04 -03:00
parent 8fc5ed0e57
commit 5fd68fdc6e
1 changed files with 3 additions and 3 deletions

View File

@ -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
]
]