Ver código fonte

:recycle: forward to login

neo
toj 2 anos atrás
pai
commit
0f3002551e

+ 0
- 1
frontend/src/router/guards.js Ver arquivo

@@ -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 Ver arquivo

@@ -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
 }

Carregando…
Cancelar
Salvar