editerProfil OK

thierry
Tmadkaud 7 years ago
parent 447cb3a0b4
commit a093883530

@ -3,7 +3,7 @@
<h4 class="mb-5 mt-1 font-bold wow fadeInDown text-center" style="padding-top: 5%;">Historique des cartes envoyées ({{(carteParData | async)?.length}})</h4>
<!--<button class="btn btn-primary btn-rounded waves-light" (click)="goToOpCom()">Retour aux Opérations commerciales</button>-->
<div class="topButtons col-md-12" style="padding-top: 2%;">
<div *ngIf="(opCommData | async)?.length != 0" class="btnFiltre">
<div *ngIf="(carteParData | async)?.length != 0" class="btnFiltre">
<div class="dropdown" dropdown>
<button dropdownToggle type="button" class="btn btn-info btn-rounded dropdown-toggle waves-light" mdbRippleRadius>
Filtres

@ -3,7 +3,7 @@
<h4 class="mb-5 mt-1 font-bold wow fadeInDown text-center" style="padding-top: 5%;">Cartes de parrainage ({{(carteParrData | async)?.length}})</h4>
<div class="topButtons col-md-12" style="padding-top: 2%;">
<div *ngIf="(opCommData | async)?.length != 0" class="btnFiltre">
<div *ngIf="(carteParrData | async)?.length != 0" class="btnFiltre">
<div class="dropdown" dropdown>
<button dropdownToggle type="button" class="btn btn-info btn-rounded dropdown-toggle waves-light" mdbRippleRadius>
Filtres

@ -23,17 +23,15 @@
</div>
-->
<div class="md-form">
<i class="fa fa-file-picture-o prefix grey-text"></i>
<input type="file" id="orangeForm-File" name="file" style="padding-top: 1%;" accept=".jpg, .jpeg, .png">
</div>
<!--
<div class="btn-block">
<input type="file" name="file-1[]" id="orangeForm-File" class="inputfile inputfile-1" data-multiple-caption="{count} files selected" multiple />
<label class="waves-effect" for="orangeForm-File"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choisir image</span></label>
<button class="btn btn-deep-orange" style="margin-top: 2%;" (click)="modifyPasswordSection()">Modifier Email/Mot de passe</button>
</div>
-->
<div class="md-form" style="margin-top: 2%">
<i class="fa fa-file-picture-o prefix grey-text"></i>
<input type="file" id="orangeForm-File" name="file" style="padding-top: 1%;" accept=".jpg, .jpeg, .png">
</div>
<div class="card" style="margin-bottom: 5%" *ngIf="modifiermdp">
<div class="md-form">

@ -332,12 +332,32 @@ export class AuthService {
infoUser.uid = user.uid;
userRef.update(infoUser);
this.uploadModify(infoUser);
firebase.auth().onAuthStateChanged(function (userUpdate) {
userUpdate.updateEmail(infoUser.email);
userUpdate.updatePassword(infoUser.password);
if (userUpdate) {
console.log('userUpdate: ' + userUpdate);
} else {
console.log('pas user');
}
});
}else if (infoUser.status === 'Commercant') {
const userReff = this.databaseRef.child('Commercant').child(user.uid);
// var commercantInfo = infoUser;
infoUser.uid = user.uid;
userReff.update(infoUser);
this.uploadModify(infoUser);
firebase.auth().onAuthStateChanged(function (userUpdate) {
userUpdate.updateEmail(infoUser.email);
userUpdate.updatePassword(infoUser.password);
if (userUpdate) {
console.log('userUpdate: ' + userUpdate);
} else {
console.log('pas user');
}
});
}
}

Loading…
Cancel
Save