@tomei/sso 0.60.4-dev.10 → 0.60.4-dev.12
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/package.json
CHANGED
@@ -1820,7 +1820,7 @@ export class User extends UserBase {
|
|
1820
1820
|
|
1821
1821
|
// Part 2: Retrieve Parent Group System Access If Applicable
|
1822
1822
|
// 2.1 Check if Params.group.InheritParentSystemAccessYN is "Y" and Params.group.ParentGroupCode is not empty
|
1823
|
-
if (group.
|
1823
|
+
if (group.InheritParentSystemAccessYN === 'Y' && group.ParentGroupCode) {
|
1824
1824
|
const GroupCode = group.ParentGroupCode;
|
1825
1825
|
const parentGroup = await User._GroupRepo.findByPk(
|
1826
1826
|
GroupCode,
|
@@ -3247,12 +3247,14 @@ export class User extends UserBase {
|
|
3247
3247
|
|
3248
3248
|
// 3. Update user record
|
3249
3249
|
this.MFABypassYN = YN.Yes;
|
3250
|
+
this.MFAEnabled = 0;
|
3250
3251
|
this.UpdatedAt = new Date();
|
3251
3252
|
this.UpdatedById = loginUser.UserId;
|
3252
3253
|
|
3253
3254
|
await User._Repository.update(
|
3254
3255
|
{
|
3255
3256
|
MFABypassYN: this.MFABypassYN,
|
3257
|
+
MFAEnabled: this.MFAEnabled,
|
3256
3258
|
UpdatedAt: this.UpdatedAt,
|
3257
3259
|
UpdatedById: this.UpdatedById,
|
3258
3260
|
},
|
@@ -3367,12 +3369,14 @@ export class User extends UserBase {
|
|
3367
3369
|
|
3368
3370
|
// 3. Update user record
|
3369
3371
|
this.MFABypassYN = YN.No;
|
3372
|
+
this.MFAEnabled = 0;
|
3370
3373
|
this.UpdatedAt = new Date();
|
3371
3374
|
this.UpdatedById = loginUser.UserId;
|
3372
3375
|
|
3373
3376
|
await User._Repository.update(
|
3374
3377
|
{
|
3375
3378
|
MFABypassYN: this.MFABypassYN,
|
3379
|
+
MFAEnabled: this.MFAEnabled,
|
3376
3380
|
UpdatedAt: this.UpdatedAt,
|
3377
3381
|
UpdatedById: this.UpdatedById,
|
3378
3382
|
},
|