diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/login.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/login.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/login.ts b/client/src/app/shared/forms/form-validators/login.ts new file mode 100644 index 000000000..f37f8d285 --- /dev/null +++ b/client/src/app/shared/forms/form-validators/login.ts | |||
@@ -0,0 +1,18 @@ | |||
1 | import { Validators } from '@angular/forms' | ||
2 | |||
3 | export const LOGIN_USERNAME = { | ||
4 | VALIDATORS: [ | ||
5 | Validators.required | ||
6 | ], | ||
7 | MESSAGES: { | ||
8 | 'required': 'Username is required.' | ||
9 | } | ||
10 | } | ||
11 | export const LOGIN_PASSWORD = { | ||
12 | VALIDATORS: [ | ||
13 | Validators.required | ||
14 | ], | ||
15 | MESSAGES: { | ||
16 | 'required': 'Password is required.' | ||
17 | } | ||
18 | } | ||