doc: add loginwithEmailandPassword, then redirect the user back to homepage
This commit is contained in:
@@ -10,6 +10,12 @@ function Login() {
|
||||
|
||||
const signIn = (e) => {
|
||||
e.preventDefault();
|
||||
auth
|
||||
.signInWithEmailAndPassword(email, password)
|
||||
.then((auth) => {
|
||||
history.push("/");
|
||||
})
|
||||
.catch((error) => alert(error.message));
|
||||
};
|
||||
|
||||
const register = (e) => {
|
||||
|
||||
Reference in New Issue
Block a user