Skip to content

Commit

Permalink
fix: redirect to /login if logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Nov 16, 2024
1 parent df6c597 commit 66ed9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/stores/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const sessionStore = defineStore('crm-session', () => {
onSuccess() {
userResource.reset()
user.value = null
router.replace({ name: 'Home' })
window.location.href = '/login?redirect-to=/crm'
},
})

Expand Down

0 comments on commit 66ed9aa

Please sign in to comment.