fix: redirect to root after login
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
This commit is contained in:
@@ -23,7 +23,7 @@ async function login(): Promise<void> {
|
|||||||
const success: boolean = await authApi.login(user);
|
const success: boolean = await authApi.login(user);
|
||||||
|
|
||||||
if(success) {
|
if(success) {
|
||||||
router.push("/users"); // redirect
|
router.push(""); // redirect
|
||||||
} else {
|
} else {
|
||||||
// prompt try again
|
// prompt try again
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user