Guest User

Untitled

a guest
Feb 1st, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. registerEmployeeByEmail(user: User, password: string): Observable<void> {
  2. return from(this.afAuth.auth.createUserWithEmailAndPassword(user.email, password).then(credentials => {
  3.  
  4. user.id = credentials.user.uid;
  5. this.db.doc(this.dbPath + user.id).set(user);
  6. }));
  7. }
Add Comment
Please, Sign In to add comment