@tomei/sso 0.34.8 → 0.34.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/login-user/user.js +4 -2
- package/dist/src/components/login-user/user.js.map +1 -1
- package/dist/src/models/user.entity.js +4 -4
- package/dist/src/models/user.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/20240314080602-create-user-table.js +1 -1
- package/package.json +1 -1
- package/src/components/login-user/user.ts +4 -2
- package/src/models/user.entity.ts +4 -4
package/package.json
CHANGED
@@ -1020,8 +1020,7 @@ export class User extends UserBase {
|
|
1020
1020
|
}
|
1021
1021
|
//If Params.IdNo is not null, then Params.IdType is required and vice versa.
|
1022
1022
|
if (IdType && IdNo) {
|
1023
|
-
where[Op.
|
1024
|
-
where[Op.or]['IdNo'] = IdNo;
|
1023
|
+
where[Op.and] = [{ IdType: IdType }, { IdNo: IdNo }];
|
1025
1024
|
}
|
1026
1025
|
if (ContactNo) {
|
1027
1026
|
where[Op.or]['ContactNo'] = ContactNo;
|
@@ -1345,6 +1344,9 @@ export class User extends UserBase {
|
|
1345
1344
|
{
|
1346
1345
|
Email: userInfo.Email,
|
1347
1346
|
UserName: userInfo.UserName,
|
1347
|
+
FullName: userInfo.FullName,
|
1348
|
+
IdNo: userInfo.IDNo,
|
1349
|
+
IdType: userInfo.IDType,
|
1348
1350
|
Password: userInfo.Password,
|
1349
1351
|
Status: userInfo.Status,
|
1350
1352
|
DefaultPasswordChangedYN: userInfo.DefaultPasswordChangedYN,
|
@@ -53,25 +53,25 @@ export default class User extends Model {
|
|
53
53
|
Password: string;
|
54
54
|
|
55
55
|
@Column({
|
56
|
-
allowNull:
|
56
|
+
allowNull: true,
|
57
57
|
type: DataType.STRING,
|
58
58
|
})
|
59
59
|
FullName: string;
|
60
60
|
|
61
61
|
@Column({
|
62
|
-
allowNull:
|
62
|
+
allowNull: true,
|
63
63
|
type: DataType.STRING,
|
64
64
|
})
|
65
65
|
IdNo: string;
|
66
66
|
|
67
67
|
@Column({
|
68
|
-
allowNull:
|
68
|
+
allowNull: true,
|
69
69
|
type: DataType.STRING,
|
70
70
|
})
|
71
71
|
IdType: string;
|
72
72
|
|
73
73
|
@Column({
|
74
|
-
allowNull:
|
74
|
+
allowNull: true,
|
75
75
|
type: DataType.STRING,
|
76
76
|
})
|
77
77
|
ContactNo: string;
|