@@ -37,35 +37,43 @@ export class FormUtilsService {
37
37
}
38
38
39
39
get passwordHasNoLowercase ( ) : ( form : FormGroup ) => boolean {
40
- return ( form : FormGroup ) => this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_LOWERCASE ) ;
40
+ return ( form : FormGroup ) =>
41
+ this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_LOWERCASE ) ;
41
42
}
42
43
43
44
get passwordHasNoUppercase ( ) : ( form : FormGroup ) => boolean {
44
- return ( form : FormGroup ) => this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_UPPERCASE ) ;
45
+ return ( form : FormGroup ) =>
46
+ this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_UPPERCASE ) ;
45
47
}
46
48
47
49
get passwordHasNoNumeric ( ) : ( form : FormGroup ) => boolean {
48
- return ( form : FormGroup ) => this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_NUMERIC ) ;
50
+ return ( form : FormGroup ) =>
51
+ this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_NUMERIC ) ;
49
52
}
50
53
51
54
get passwordHasNoSpecial ( ) : ( form : FormGroup ) => boolean {
52
- return ( form : FormGroup ) => this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_SPECIAL ) ;
55
+ return ( form : FormGroup ) =>
56
+ this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_SPECIAL ) ;
53
57
}
54
58
55
59
get isPasswordShort ( ) : ( form : FormGroup ) => boolean {
56
- return ( form : FormGroup ) => this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_SHORT ) ;
60
+ return ( form : FormGroup ) =>
61
+ this . passwordControl ( form ) . pristine || this . passwordControl ( form ) . hasError ( PASSWORD_SHORT ) ;
57
62
}
58
63
59
64
get isPasswordWeak ( ) : ( form : FormGroup ) => boolean {
60
- return ( form : FormGroup ) => this . passwordControl ( form ) . dirty && this . passwordControl ( form ) . hasError ( PASSWORD_WEAK ) ;
65
+ return ( form : FormGroup ) =>
66
+ this . passwordControl ( form ) . dirty && this . passwordControl ( form ) . hasError ( PASSWORD_WEAK ) ;
61
67
}
62
68
63
69
get isPasswordStrong ( ) : ( form : FormGroup ) => boolean {
64
- return ( form : FormGroup ) => this . passwordControl ( form ) . dirty && ! this . passwordControl ( form ) . hasError ( PASSWORD_WEAK ) ;
70
+ return ( form : FormGroup ) =>
71
+ this . passwordControl ( form ) . dirty && ! this . passwordControl ( form ) . hasError ( PASSWORD_WEAK ) ;
65
72
}
66
73
67
74
get isPasswordInvalid ( ) : ( form : FormGroup ) => boolean {
68
- return ( form : FormGroup ) => this . passwordControl ( form ) . dirty && this . passwordControl ( form ) . hasError ( PASSWORD_INVALID ) ;
75
+ return ( form : FormGroup ) =>
76
+ this . passwordControl ( form ) . dirty && this . passwordControl ( form ) . hasError ( PASSWORD_INVALID ) ;
69
77
}
70
78
71
79
get hasPasswordMismatch ( ) : ( form : FormGroup ) => boolean {
@@ -74,4 +82,4 @@ export class FormUtilsService {
74
82
return this . passwordControl ( form ) . valid && confirmPasswordControl . dirty && form . hasError ( PASSWORD_MISMATCH ) ;
75
83
} ;
76
84
}
77
- }
85
+ }
0 commit comments