diff --git a/src/frontend/app/profile/profile.component.html b/src/frontend/app/profile/profile.component.html index ec3cc01e512f21341c849535aeebe27c5d40363f..99637f71738126f3a2527b38325202ba3d86a7dd 100644 --- a/src/frontend/app/profile/profile.component.html +++ b/src/frontend/app/profile/profile.component.html @@ -18,10 +18,15 @@ <mat-tab label="{{'lang.informations' | translate}}"> <div class="profile-content"> <mat-form-field class="input-row"> - <input name="login" matInput placeholder="{{'lang.email' | translate}}" type="mail" - [(ngModel)]="profileInfo.email" (keyup)="newLogin.mail=newLogin.mail.toLowerCase()" + <input name="login" matInput placeholder="{{'lang.login' | translate}}" type="text" + [(ngModel)]="profileInfo.login" (keyup)="newLogin.login=newLogin.login.toLowerCase()" disabled required> </mat-form-field> + <mat-form-field class="input-row"> + <input name="email" matInput placeholder="{{'lang.email' | translate}}" type="mail" + [(ngModel)]="profileInfo.email" (keyup)="newLogin.mail=newLogin.mail.toLowerCase()" + required> + </mat-form-field> <mat-form-field class="input-row"> <input name="firstname" matInput placeholder="{{'lang.firstname' | translate}}" [(ngModel)]="profileInfo.firstname" required> diff --git a/src/frontend/app/profile/profile.component.ts b/src/frontend/app/profile/profile.component.ts index cc68daab6ea5b241086b81001dd4d5838218fc0c..9dacf444a0fbae8978ae6a743ba91bf1c27f82ea 100644 --- a/src/frontend/app/profile/profile.component.ts +++ b/src/frontend/app/profile/profile.component.ts @@ -182,6 +182,7 @@ export class ProfileComponent implements OnInit { let profileToSend = { 'firstname': this.profileInfo.firstname, 'lastname': this.profileInfo.lastname, + 'email': this.profileInfo.email, 'picture': this.profileInfo.picture, 'preferences': this.profileInfo.preferences };