From 4b5079d1b2305e3ea477e1cefd57c1573ca177a5 Mon Sep 17 00:00:00 2001 From: Vinciane <vinciane.bizet@maarch.org> Date: Wed, 24 Apr 2019 10:44:51 +0200 Subject: [PATCH] FEAT #10987 TIME 0:20 Email pattern --- src/frontend/app/profile/profile.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/profile/profile.component.html b/src/frontend/app/profile/profile.component.html index 6ee47f9a5b..d7193c2524 100644 --- a/src/frontend/app/profile/profile.component.html +++ b/src/frontend/app/profile/profile.component.html @@ -24,7 +24,7 @@ </mat-form-field> <mat-form-field class="input-row"> <input name="email" matInput placeholder="{{'lang.email' | translate}}" type="mail" - [(ngModel)]="profileInfo.email" required> + [(ngModel)]="profileInfo.email" pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" required> </mat-form-field> <mat-form-field class="input-row"> <input name="firstname" matInput placeholder="{{'lang.firstname' | translate}}" [(ngModel)]="profileInfo.firstname" -- GitLab