Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active July 7, 2017 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/9e93dc90dfd9ecb7108c864863d6656a to your computer and use it in GitHub Desktop.
Save matthieu-D/9e93dc90dfd9ecb7108c864863d6656a to your computer and use it in GitHub Desktop.
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