Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: modify auth page
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark2000 committed May 27, 2024
1 parent 7f02a81 commit 54b2f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/app/(public)/login/_components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default function LoginForm() {
})

if (!res?.error) {
router.replace(searchParams.get('callbackUrl') ?? '/console/dashboard')
router.refresh()
router.push(searchParams.get('callbackUrl') ?? '/console/dashboard')
} else {
toast.error('로그인 실패')
}
Expand Down

0 comments on commit 54b2f85

Please sign in to comment.