(email:string, password:string)
| 106 | } |
| 107 | |
| 108 | emailLogin(email:string, password:string) { |
| 109 | return this.afAuth.auth.signInWithEmailAndPassword(email, password) |
| 110 | .then((user) => { |
| 111 | this.authState = user |
| 112 | this.updateUserData() |
| 113 | }) |
| 114 | .catch(error => console.log(error)); |
| 115 | } |
| 116 | |
| 117 | // Sends email allowing user to reset password |
| 118 | resetPassword(email: string) { |