Skip to content
Snippets Groups Projects
Commit ace62a88 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13671 TIME 0:05 fix email validator

parent 267097b5
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,13 @@ export class UseradminComponent implements OnInit {
) {
const valLogin: ValidatorFn[] = [Validators.pattern(/^[\w.@-]*$/), Validators.required];
const valEmail: ValidatorFn[] = [Validators.pattern(/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/), Validators.required];
this.stepFormGroup = this._formBuilder.group({
login: [{ value: 'superadmin', disabled: true }, valLogin],
password: ['', Validators.required],
passwordConfirm: ['', Validators.required],
email: ['dev@maarch.org', Validators.required],
email: ['dev@maarch.org', valEmail],
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment