reset password

This commit is contained in:
2020-04-24 15:37:27 +02:00
committed by smuddy
parent 0e8a493deb
commit 732353f5bd
14 changed files with 161 additions and 7 deletions

View File

@@ -29,4 +29,16 @@ export class UserService {
public async update$(uid: string, data: Partial<User>): Promise<void> {
await this.db.doc<User>('users/' + uid).update(data);
}
public async login(user: string, password: string): Promise<any> {
await this.afAuth.auth.signInWithEmailAndPassword(user, password);
}
public async logout(): Promise<any> {
await this.afAuth.auth.signOut();
}
public async changePassword(email: string): Promise<any> {
await this.afAuth.auth.sendPasswordResetEmail(email);
}
}