skip signin if auth disabled
Signed-off-by: Raul Kele <raulkeleblk@gmail.com>
This commit is contained in:
parent
525c1420b0
commit
5ccc57c8da
@ -77,6 +77,8 @@ export default function SignIn({ isAuthEnabled, setIsAuthEnabled, isLoggedIn, se
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
setIsAuthEnabled(false);
|
setIsAuthEnabled(false);
|
||||||
|
setIsLoggedIn(true);
|
||||||
|
navigate("/home");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
|
Loading…
Reference in New Issue
Block a user