소스 검색

:pencil2: Fixed merge issues

juan-filtering-match-pool
tomit4 2 년 전
부모
커밋
83e2e0d36c
4개의 변경된 파일8개의 추가작업 그리고 19개의 파일을 삭제
  1. 1
    1
      backend/lib/services/user.js
  2. 3
    13
      frontend/src/components/AspectBar.vue
  3. 2
    3
      frontend/src/services/auth.service.js
  4. 2
    2
      frontend/src/views/VerifyView.vue

+ 1
- 1
backend/lib/services/user.js 파일 보기

@@ -110,7 +110,7 @@ module.exports = class UserService extends Schmervice.Service {
110 110
         return user
111 111
     }
112 112
 
113
-    async hashToken(token) {
113
+    hashToken(token) {
114 114
         const salt = process.env.APP_SESSION_SALT
115 115
         try {
116 116
             return crypto.createHmac('sha256', salt).update(token).digest('hex')

+ 3
- 13
frontend/src/components/AspectBar.vue 파일 보기

@@ -1,12 +1,8 @@
1 1
 <template lang="pug">
2 2
 figure.w-flex.column
3 3
     figcaption.w-flex.xs12.justify-space-between.align-center
4
-        p(
5
-            :class='{ main: index === 1 }'
6
-            :key='label'
7
-            v-for='(label, index) in labels'
8
-        ) {{ label }}
9
-    w-progress.mb7(round size='0.5em' v-model='progress')
4
+        p(v-for="(label, index) in labels" :key="label" :class="{ 'main': index === 1 }")  {{ label }}
5
+    w-progress(:model-value="percentage" size="0.5em" round).mb7
10 6
 </template>
11 7
 
12 8
 <script>
@@ -16,14 +12,9 @@ export default {
16 12
             required: true,
17 13
             type: Array,
18 14
         },
19
-        percentage: {
20
-            required: false,
21
-            type: Number,
22
-            default: 50,
23
-        },
24 15
     },
25 16
     data: () => ({
26
-        progress: props.percentage,
17
+        percentage: 50,
27 18
     }),
28 19
 }
29 20
 </script>
@@ -37,7 +28,6 @@ figure
37 28
             font-weight: bold
38 29
             text-transform: uppercase
39 30
 
40
-
41 31
     .w-progress
42 32
         background-color: #4C5264
43 33
         .w-progress__progress

+ 2
- 3
frontend/src/services/auth.service.js 파일 보기

@@ -36,9 +36,8 @@ class Authenticator {
36 36
         const hashedAccessToken = this.grabStoredCookie(sessionCookie)
37 37
         if (!hashedAccessToken)
38 38
             return console.warn('WARNING :=> accessToken is not defined')
39
-        const validatedToken = await authenticator.validateSession(
40
-            hashedAccessToken,
41
-        )
39
+        const validatedToken =
40
+            await authenticator.validateSession(hashedAccessToken)
42 41
         if (validatedToken.error) {
43 42
             console.error('ERROR :=>', validatedToken.error)
44 43
         } else {

+ 2
- 2
frontend/src/views/VerifyView.vue 파일 보기

@@ -18,8 +18,8 @@ export default {
18 18
             await this.doesAccessTokenExist(hashedAccessToken)
19 19
             await this.verifyActiveSession(hash)
20 20
             const sessionData =
21
-                await authenticator.verifySessionCookie('siimee_access')
22
-            await currentProfile.login(
21
+                await authenticator.verifySessionCookie('siimee_session')
22
+            currentProfile.login(
23 23
                 sessionData.profileId,
24 24
                 this.$waveui.notify,
25 25
                 sessionData.accessToken,

Loading…
취소
저장