File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ yarn add react-netlify-identity
41
41
- ` isConfirmedUser: boolean ` : if they have confirmed their email
42
42
- ` isLoggedIn: boolean ` : if the user is logged in
43
43
- ` signupUser(email: string, password: string, data: Object) `
44
- - ` loginUser(email: string, password: string) `
44
+ - ` loginUser(email: string, password: string, remember: Boolean ) `
45
45
- ` logoutUser() `
46
46
- ` requestPasswordRecovery(email: string) `
47
47
- ` recoverAccount(token: string, remember?: boolean | undefined) `
@@ -95,7 +95,7 @@ function Login() {
95
95
e .preventDefault ();
96
96
const email = e .target .email .value ;
97
97
const password = e .target .password .value ;
98
- load (loginUser (email , password ))
98
+ load (loginUser (email , password , true ))
99
99
.then (user => {
100
100
console .log (' Success! Logged in' , user );
101
101
navigate (' /dashboard' );
You can’t perform that action at this time.
0 commit comments