Преглед на файлове

:recycle: forward to login

neo
toj преди 2 години
родител
ревизия
0f3002551e
променени са 2 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 0
    1
      frontend/src/router/guards.js
  2. 1
    1
      frontend/src/services/auth.service.js

+ 0
- 1
frontend/src/router/guards.js Целия файл

@@ -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 Целия файл

@@ -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…
Отказ
Запис