|
|
|
@ -119,10 +119,12 @@ export class AuthService {
|
|
|
|
|
console.log('salut le ' + this.utilisateur.email + ' ' + this.utilisateur.status + ' has signed!');
|
|
|
|
|
|
|
|
|
|
firebase.auth().onAuthStateChanged(function (userUpdate) {
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: elementParrain.status,
|
|
|
|
|
photoURL: elementParrain.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
if(userUpdate !== null){
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: elementParrain.status,
|
|
|
|
|
photoURL: elementParrain.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (this.utilisateur.status === 'Parrain') {
|
|
|
|
|
this.router.navigate(['/carteParrainageComponent']);
|
|
|
|
@ -152,10 +154,12 @@ export class AuthService {
|
|
|
|
|
if (/*user.emailVerified*/true){
|
|
|
|
|
console.log('salut le ' + this.utilisateur.email + ' ' + this.utilisateur.status + ' has signed!');
|
|
|
|
|
firebase.auth().onAuthStateChanged(function (userUpdate) {
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: elementCommercant.status,
|
|
|
|
|
photoURL: elementCommercant.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
if (userUpdate !== null){
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: elementCommercant.status,
|
|
|
|
|
photoURL: elementCommercant.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (this.utilisateur.status === 'Parrain') {
|
|
|
|
|
this.router.navigate(['/carteParrainageComponent']);
|
|
|
|
@ -257,13 +261,15 @@ export class AuthService {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
firebase.auth().onAuthStateChanged(function (userUpdate) {
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: info.status,
|
|
|
|
|
photoURL: info.image.downloadURL
|
|
|
|
|
}).then(al => {
|
|
|
|
|
console.log('userUpdate.dispppp : ' + al);
|
|
|
|
|
// firebase.auth().signOut();
|
|
|
|
|
});
|
|
|
|
|
if (userUpdate !== null){
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: info.status,
|
|
|
|
|
photoURL: info.image.downloadURL
|
|
|
|
|
}).then(al => {
|
|
|
|
|
console.log('userUpdate.dispppp : ' + al);
|
|
|
|
|
// firebase.auth().signOut();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
@ -291,10 +297,12 @@ export class AuthService {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
firebase.auth().onAuthStateChanged(function (userUpdate) {
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: info.status,
|
|
|
|
|
photoURL: info.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
if (userUpdate !== null){
|
|
|
|
|
userUpdate.updateProfile({
|
|
|
|
|
displayName: info.status,
|
|
|
|
|
photoURL: info.image.downloadURL
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (userUpdate) {
|
|
|
|
|
console.log('userUpdate: ' + userUpdate);
|
|
|
|
|
} else {
|
|
|
|
|