diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/user.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/user.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/app/shared/forms/form-validators/user.ts b/client/src/app/shared/forms/form-validators/user.ts index 0ad0e2a4b..259d2b868 100644 --- a/client/src/app/shared/forms/form-validators/user.ts +++ b/client/src/app/shared/forms/form-validators/user.ts | |||
@@ -1,7 +1,5 @@ | |||
1 | import { Validators } from '@angular/forms'; | 1 | import { Validators } from '@angular/forms'; |
2 | 2 | ||
3 | import { validateEmail } from './email.validator'; | ||
4 | |||
5 | export const USER_USERNAME = { | 3 | export const USER_USERNAME = { |
6 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(20) ], | 4 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(20) ], |
7 | MESSAGES: { | 5 | MESSAGES: { |
@@ -11,7 +9,7 @@ export const USER_USERNAME = { | |||
11 | } | 9 | } |
12 | }; | 10 | }; |
13 | export const USER_EMAIL = { | 11 | export const USER_EMAIL = { |
14 | VALIDATORS: [ Validators.required, validateEmail ], | 12 | VALIDATORS: [ Validators.required, Validators.email ], |
15 | MESSAGES: { | 13 | MESSAGES: { |
16 | 'required': 'Email is required.', | 14 | 'required': 'Email is required.', |
17 | 'email': 'Email must be valid.', | 15 | 'email': 'Email must be valid.', |