fix(db); no more bug on switch connection
This commit is contained in:
@@ -27,6 +27,7 @@ export function LoginForm({ from }: LoginFormProps) {
|
||||
try {
|
||||
await authService.login(email, password, remember);
|
||||
router.push(from || "/");
|
||||
router.refresh();
|
||||
} catch (error) {
|
||||
setError(error as AuthError);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user