Last active
July 7, 2017 21:48
-
-
Save matthieu-D/9e93dc90dfd9ecb7108c864863d6656a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login(username, password) { | |
this.angularFireAuth.auth.signInWithEmailAndPassword(username, password) | |
.then((user) => { | |
if(user.emailVerified) { | |
// Redirect the user here | |
} else { | |
// Tell the user to have a look at its mailbox | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment