@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.35.6",
3
+ "version": "0.35.7",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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 || data.UserName !== this.UserName) {
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
  }