Feature/Auth: implement user authentication #3
@@ -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