Selaa lähdekoodia

:recycle: forward to login

neo
toj 2 vuotta sitten
vanhempi
commit
0f3002551e
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 0
    1
      frontend/src/router/guards.js
  2. 1
    1
      frontend/src/services/auth.service.js

+ 0
- 1
frontend/src/router/guards.js Näytä tiedosto

@@ -41,7 +41,6 @@ const checkLoginStatus = async (destination, nextCb) => {
41 41
     ) {
42 42
         nextCb('/onboarding')
43 43
     } else if (
44
-        destination.meta.requiresCompleteProfile &&
45 44
         destination.meta.requiresAuth &&
46 45
         !currentProfile.isLoggedIn
47 46
     ) {

+ 1
- 1
frontend/src/services/auth.service.js Näytä tiedosto

@@ -56,7 +56,7 @@ class Authenticator {
56 56
     async checkSessionValid() {
57 57
         const validation = await this.#isValidSession()
58 58
         if (validation.error)
59
-            return console.error('ERROR :=>', validation.error)
59
+            console.error('ERROR :=>', validation.error)
60 60
         return validation
61 61
     }
62 62
 }

Loading…
Peruuta
Tallenna