rez_core 2.2.217 → 2.2.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/auth/strategies/google.strategy.js +0 -1
- package/dist/module/auth/strategies/google.strategy.js.map +1 -1
- package/dist/module/user/controller/login.controller.js +2 -2
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/workflow/repository/task.repository.js +2 -0
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/auth/strategies/google.strategy.ts +0 -1
- package/src/module/user/controller/login.controller.ts +2 -2
- package/src/module/workflow/repository/task.repository.ts +2 -0
- package/src/resources/dev.properties.yaml +2 -3
package/package.json
CHANGED
|
@@ -14,7 +14,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
|
|
|
14
14
|
'openid',
|
|
15
15
|
'email',
|
|
16
16
|
'profile',
|
|
17
|
-
'https://www.googleapis.com/auth/gmail.send',
|
|
18
17
|
],
|
|
19
18
|
accessType: 'offline', // good: gets refresh_token on first consent
|
|
20
19
|
includeGrantedScopes: true, // optional, keeps prior grants
|
|
@@ -158,7 +158,7 @@ export class LoginController {
|
|
|
158
158
|
const { accessToken, appcode } = data;
|
|
159
159
|
if (profile && profile === 'dev') {
|
|
160
160
|
return res.redirect(
|
|
161
|
-
`${this.configService.get('
|
|
161
|
+
`${this.configService.get('DOMAIN_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
|
|
162
162
|
);
|
|
163
163
|
} else {
|
|
164
164
|
if (data.slug) {
|
|
@@ -169,7 +169,7 @@ export class LoginController {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
return res.redirect(
|
|
172
|
-
`${this.configService.get('
|
|
172
|
+
`${this.configService.get('DOMAIN_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -62,6 +62,8 @@ export class TaskRepository {
|
|
|
62
62
|
user_id: loggedInUser.id,
|
|
63
63
|
action_id: act.id,
|
|
64
64
|
organization_id: loggedInUser.organization_id,
|
|
65
|
+
level_type: loggedInUser.level_type,
|
|
66
|
+
level_id: loggedInUser.level_id,
|
|
65
67
|
name: act.name,
|
|
66
68
|
sequence: act.sequence,
|
|
67
69
|
is_mandatory: is_mandatory[0]?.code === 'mandatory' ? true : false,
|
|
@@ -8,10 +8,9 @@ DB_NAME: 'package_core'
|
|
|
8
8
|
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
9
9
|
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
10
10
|
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
11
|
-
CLIENT_ID: '
|
|
12
|
-
CLIENT_SECRET: 'GOCSPX-
|
|
11
|
+
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
12
|
+
CLIENT_SECRET: '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'
|
|
13
13
|
CALLBACK_URL: 'http://localhost:5001/auth/google/callback'
|
|
14
|
-
FE_URL: 'http://localhost:3000'
|
|
15
14
|
BASE_URL: 'http://localhost:5001'
|
|
16
15
|
DOMAIN_URL: 'rezolut.in'
|
|
17
16
|
OTP_EXPIRY: '10'
|