Pārlūkot izejas kodu

:bug: Fixed bug which blocked login related to legacy token logic

juan-filtering-match-pool
tomit4 2 gadus atpakaļ
vecāks
revīzija
2ed8d01ceb
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. 0
    7
      frontend/src/views/VerifyView.vue

+ 0
- 7
frontend/src/views/VerifyView.vue Parādīt failu

7
 <script>
7
 <script>
8
 import { currentProfile, authenticator } from '../services'
8
 import { currentProfile, authenticator } from '../services'
9
 let hash = null
9
 let hash = null
10
-let hashedAccessToken = null
11
 export default {
10
 export default {
12
     name: 'VerifyView',
11
     name: 'VerifyView',
13
     async created() {
12
     async created() {
14
         hash = this.$route.params.hashedToken
13
         hash = this.$route.params.hashedToken
15
-        hashedAccessToken = authenticator.grabStoredCookie('siimee_access')
16
         try {
14
         try {
17
             this.isHashInUrl(hash)
15
             this.isHashInUrl(hash)
18
-            await this.doesAccessTokenExist(hashedAccessToken)
19
             await this.verifyActiveSession(hash)
16
             await this.verifyActiveSession(hash)
20
             const sessionData =
17
             const sessionData =
21
                 await authenticator.verifySessionCookie('siimee_session')
18
                 await authenticator.verifySessionCookie('siimee_session')
33
         isHashInUrl(hash) {
30
         isHashInUrl(hash) {
34
             if (!hash) throw new Error('URL contains no hash!')
31
             if (!hash) throw new Error('URL contains no hash!')
35
         },
32
         },
36
-        async doesAccessTokenExist(hashedAccessToken) {
37
-            if (!hashedAccessToken)
38
-                throw new Error('accessToken not in cookie store!')
39
-        },
40
         async verifyActiveSession(hashedToken) {
33
         async verifyActiveSession(hashedToken) {
41
             const sessionData = await authenticator.verifySession(hashedToken)
34
             const sessionData = await authenticator.verifySession(hashedToken)
42
             if (!sessionData.hashesMatch)
35
             if (!sessionData.hashesMatch)

Notiek ielāde…
Atcelt
Saglabāt