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

:construction: Incorporated changes of juan_spike into brian_dev_111

juan_spike
tomit4 преди 2 години
родител
ревизия
89a8924192

+ 0
- 1
backend/lib/routes/user/validatesession.js Целия файл

@@ -28,7 +28,6 @@ module.exports = {
28 28
             const hashedSessionToken = request.payload
29 29
             const { userService } = request.server.services()
30 30
             try {
31
-                // const validatedSessionToken = userService.validateToken(sessionToken)
32 31
                 const validatedSessionToken =
33 32
                     userService.validateSession(hashedSessionToken)
34 33
                 return {

+ 1
- 1
backend/lib/services/user.js Целия файл

@@ -361,7 +361,7 @@ module.exports = class UserService extends Schmervice.Service {
361 361
                     email: userCredentials.email,
362 362
                 },
363 363
             ],
364
-            templateId: 2,
364
+            templateId: 1,
365 365
             params: {
366 366
                 // TODO: Change this in production...
367 367
                 link: `localhost:3000/verify/${hashedSessionToken}`,

+ 1
- 0
frontend/src/entities/survey/survey.answer.validator.js Целия файл

@@ -10,6 +10,7 @@ const answerValidator = {
10 10
     // TODO: change to valdate against JWT??
11 11
     auth: Joi.any(),
12 12
 
13
+    // TODO: Uncomment when ease of development no longer needed
13 14
     // password: Joi.string().min(10).max(30).pattern(new RegExp('[a-zA-Z0-9]+')),
14 15
     password: Joi.string().max(30).pattern(new RegExp('[a-zA-Z0-9]+')),
15 16
     // TODO: Change if going international (only works in usa)

+ 0
- 2
frontend/src/views/VerifyView.vue Целия файл

@@ -47,8 +47,6 @@ export default {
47 47
             if (!hashedSessionToken)
48 48
                 throw new Error('sessionToken not in cookie store!')
49 49
         },
50
-        // TODO: Next is to put this into OnboardingView
51
-        // TODO: validate routes using sole SessionToken Grabbed from hash in cookie
52 50
         async verifyActiveSession(hashedToken) {
53 51
             const sessionData = await this.authenticator.verifyAuthSession(
54 52
                 hashedToken,

Loading…
Отказ
Запис