Commit 4a89a1c3 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16982 TIME 0:20 make phone optional + change pattern

parent 4e82e271
......@@ -54,9 +54,9 @@
pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"></ion-input>
</ion-item>
<ion-item>
<ion-label color="secondary" position="floating">{{'lang.phoneAlt' | translate}} *</ion-label>
<ion-input type="text" name="phone" [(ngModel)]="user.phone" required
pattern="^(?:0|\(?\+33\)?\s?|0033\s?)[1-79](?:[\.\-\s]?\d\d){4}$"></ion-input>
<ion-label color="secondary" position="floating">{{'lang.phoneAlt' | translate}}</ion-label>
<ion-input type="text" name="phone" [(ngModel)]="user.phone"
pattern="\+?((|\ |\.|\(|\)|\-)?(\d)*)*\d$"></ion-input>
</ion-item>
<ion-item>
<ion-label>{{'lang.restUser' | translate}}</ion-label>
......
......@@ -54,7 +54,7 @@
<ion-item>
<ion-label color="secondary" position="floating">{{'lang.phoneAlt' | translate}}</ion-label>
<ion-input name="phone" [(ngModel)]="profileInfo.phone" [readonly]="authService.authMode !== 'default'"
pattern="^(?:0|\(?\+33\)?\s?|0033\s?)[1-79](?:[\.\-\s]?\d\d){4}$" required>
pattern="\+?((|\ |\.|\(|\)|\-)?(\d)*)*\d$">
</ion-input>
</ion-item>
<div *ngIf="authService.authMode === 'default'">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment