Permalink
Browse files

revert: revert #158 due to conflicts

  • Loading branch information...
pi0 committed May 18, 2018
1 parent 6206803 commit 2afe9caddfd365fb1339c40462391f2321c9624b
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/core/auth.js
@@ -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')
}
})

0 comments on commit 2afe9ca

Please sign in to comment.