1 import { I18n } from '@ngx-translate/i18n-polyfill'
2 import { Validators } from '@angular/forms'
3 import { Injectable } from '@angular/core'
4 import { BuildFormValidator } from '@app/shared'
7 export class LoginValidatorsService {
8 readonly LOGIN_USERNAME: BuildFormValidator
9 readonly LOGIN_PASSWORD: BuildFormValidator
11 constructor (private i18n: I18n) {
12 this.LOGIN_USERNAME = {
17 'required': this.i18n('Username is required.')
21 this.LOGIN_PASSWORD = {
26 'required': this.i18n('Password is required.')