From 2afe9caddfd365fb1339c40462391f2321c9624b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 18 May 2018 12:33:38 +0430 Subject: [PATCH] revert: revert #158 due to conflicts --- lib/core/auth.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/core/auth.js b/lib/core/auth.js index 4cf74672d..37d890877 100644 --- a/lib/core/auth.js +++ b/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') } })