Skip to content
Snippets Groups Projects
Unverified Commit 1f89ff69 authored by ThomasBidot's avatar ThomasBidot Committed by GitHub
Browse files

Back to no mail verification

parent 282d1757
No related branches found
No related tags found
1 merge request!75Authorize valid profile
import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material';
// From: https://stackoverflow.com/a/51606362
export class PasswordErrorStateMatcher implements ErrorStateMatcher {
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
const invalidParent = !!(control && control.parent && control.parent.invalid && control.parent.dirty);
return (control && control.dirty && invalidParent);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment