Skip to content

Commit

Permalink
revert: revert #158 due to conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 18, 2018
1 parent 6206803 commit 2afe9ca
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export default class Auth {
if (process.browser) {
this.$storage.watchState('loggedIn', loggedIn => {
if (!routeOption(this.ctx.route, 'auth', false)) {
// Disable redirect on refresh / direct load of a page.
if (loggedIn && !this.ctx.from) {
return
}

this.redirect(loggedIn ? 'home' : 'logout')
}
})
Expand Down

0 comments on commit 2afe9ca

Please sign in to comment.