@tomei/sso 0.53.3 → 0.53.4
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
|
@@ -2111,6 +2111,7 @@ export class User extends UserBase {
|
|
|
2111
2111
|
CompanyCode?: string;
|
|
2112
2112
|
DepartmentCode?: string;
|
|
2113
2113
|
ContactNo?: string;
|
|
2114
|
+
IdNo?: string;
|
|
2114
2115
|
},
|
|
2115
2116
|
loginUser: User,
|
|
2116
2117
|
dbTransaction: any,
|
|
@@ -2154,6 +2155,18 @@ export class User extends UserBase {
|
|
|
2154
2155
|
});
|
|
2155
2156
|
}
|
|
2156
2157
|
|
|
2158
|
+
if (data.IdNo !== this.IDNo) {
|
|
2159
|
+
await User.checkUserInfoDuplicated(dbTransaction, {
|
|
2160
|
+
IdNo: data.IdNo,
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
if (data.ContactNo !== this.ContactNo) {
|
|
2165
|
+
await User.checkUserInfoDuplicated(dbTransaction, {
|
|
2166
|
+
ContactNo: data.ContactNo,
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2157
2170
|
//Part 3: Update Building, Company, Department
|
|
2158
2171
|
//If Params.BuildingCode is not null,
|
|
2159
2172
|
if (data.BuildingCode) {
|
|
@@ -2395,6 +2408,8 @@ export class User extends UserBase {
|
|
|
2395
2408
|
this.UpdatedAt = new Date();
|
|
2396
2409
|
this.UpdatedById = loginUser.UserId;
|
|
2397
2410
|
this.ContactNo = data.ContactNo;
|
|
2411
|
+
this.IDNo = data.IdNo;
|
|
2412
|
+
this.IDType = 'NRIC';
|
|
2398
2413
|
//Call LoginUser._Repo update method to update user record
|
|
2399
2414
|
await User._Repository.update(
|
|
2400
2415
|
{
|
|
@@ -2405,6 +2420,8 @@ export class User extends UserBase {
|
|
|
2405
2420
|
ContactNo: this.ContactNo,
|
|
2406
2421
|
UpdatedById: this.UpdatedById,
|
|
2407
2422
|
UpdatedAt: this.UpdatedAt,
|
|
2423
|
+
IdNo: this.IDNo,
|
|
2424
|
+
IdType: this.IDType,
|
|
2408
2425
|
},
|
|
2409
2426
|
{
|
|
2410
2427
|
where: {
|
|
@@ -2422,6 +2439,9 @@ export class User extends UserBase {
|
|
|
2422
2439
|
Email: this.Email,
|
|
2423
2440
|
Password: this.Password,
|
|
2424
2441
|
Status: this.Status,
|
|
2442
|
+
ContactNo: this.ContactNo,
|
|
2443
|
+
IdNo: this.IDNo,
|
|
2444
|
+
IDType: this.IDType,
|
|
2425
2445
|
DefaultPasswordChangedYN: this.DefaultPasswordChangedYN,
|
|
2426
2446
|
FirstLoginAt: this.FirstLoginAt,
|
|
2427
2447
|
LastLoginAt: this.LastLoginAt,
|