@tomei/sso 0.35.6 → 0.35.7
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
@@ -1987,9 +1987,14 @@ export class User extends UserBase {
|
|
1987
1987
|
}
|
1988
1988
|
|
1989
1989
|
//Make sure email is unique, call LoginUser.CheckUserInfoDuplicated method
|
1990
|
-
if (data.Email !== this.Email
|
1990
|
+
if (data.Email !== this.Email) {
|
1991
|
+
await User.checkUserInfoDuplicated(dbTransaction, {
|
1992
|
+
UserName: data.UserName,
|
1993
|
+
});
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
if (data.UserName !== this.UserName) {
|
1991
1997
|
await User.checkUserInfoDuplicated(dbTransaction, {
|
1992
|
-
Email: data.Email,
|
1993
1998
|
UserName: data.UserName,
|
1994
1999
|
});
|
1995
2000
|
}
|