@tomei/sso 0.35.6 → 0.35.7
Sign up to get free protection for your applications and to get access to all the features.
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
|
}
|