Skip to content

Commit

Permalink
fix(#977): Remove redirection when accessing login (#996)
Browse files Browse the repository at this point in the history
fix #977
This PR removes the redirect url when accessing /login or /login/

(cherry picked from commit e6a9425)
  • Loading branch information
leiyre authored and frascuchon committed Jan 19, 2022
1 parent bb6b76b commit b3fe2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/middleware/auth-guard.js
Expand Up @@ -16,8 +16,8 @@
*/

export default ({ $auth, route, redirect }) => {
switch (route.path) {
case "/login":
switch (route.name) {
case "login" :
break;
default:
if (!$auth.loggedIn) {
Expand Down

0 comments on commit b3fe2cb

Please sign in to comment.