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

FEAT #8882 TIME 0:30 add email in profile modification

parent f5e650d5
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,15 @@ ...@@ -18,10 +18,15 @@
<mat-tab label="{{'lang.informations' | translate}}"> <mat-tab label="{{'lang.informations' | translate}}">
<div class="profile-content"> <div class="profile-content">
<mat-form-field class="input-row"> <mat-form-field class="input-row">
<input name="login" matInput placeholder="{{'lang.email' | translate}}" type="mail" <input name="login" matInput placeholder="{{'lang.login' | translate}}" type="text"
[(ngModel)]="profileInfo.email" (keyup)="newLogin.mail=newLogin.mail.toLowerCase()" [(ngModel)]="profileInfo.login" (keyup)="newLogin.login=newLogin.login.toLowerCase()"
disabled required> disabled required>
</mat-form-field> </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"> <mat-form-field class="input-row">
<input name="firstname" matInput placeholder="{{'lang.firstname' | translate}}" [(ngModel)]="profileInfo.firstname" <input name="firstname" matInput placeholder="{{'lang.firstname' | translate}}" [(ngModel)]="profileInfo.firstname"
required> required>
......
...@@ -182,6 +182,7 @@ export class ProfileComponent implements OnInit { ...@@ -182,6 +182,7 @@ export class ProfileComponent implements OnInit {
let profileToSend = { let profileToSend = {
'firstname': this.profileInfo.firstname, 'firstname': this.profileInfo.firstname,
'lastname': this.profileInfo.lastname, 'lastname': this.profileInfo.lastname,
'email': this.profileInfo.email,
'picture': this.profileInfo.picture, 'picture': this.profileInfo.picture,
'preferences': this.profileInfo.preferences 'preferences': this.profileInfo.preferences
}; };
......
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