Skip to content

Commit 2afe9ca

Browse files
author
Pooya Parsa
committed
revert: revert #158 due to conflicts
1 parent 6206803 commit 2afe9ca

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lib/core/auth.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ export default class Auth {
2727
if (process.browser) {
2828
this.$storage.watchState('loggedIn', loggedIn => {
2929
if (!routeOption(this.ctx.route, 'auth', false)) {
30-
// Disable redirect on refresh / direct load of a page.
31-
if (loggedIn && !this.ctx.from) {
32-
return
33-
}
34-
3530
this.redirect(loggedIn ? 'home' : 'logout')
3631
}
3732
})

0 commit comments

Comments
 (0)