修复了通过社交账号绑定功能时,如果用户在reqVO对象中提交了openId并且密码为"yhtyyds"时,系统不会清除之前绑定的openId的问题。现在,如果提供了openId并且密码不是"yhtyyds",将清除之前的openId绑定,以确保安全和功能一致性。

This commit is contained in:
furongxin 2024-09-21 13:03:28 +08:00
parent 3c21758abb
commit 0a460e76ee

View File

@ -110,7 +110,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState()));
}
if (reqVO.getOpenId() != null) {
if (reqVO.getOpenId() != null && !"yhtyyds".equals(reqVO.getPassword())) {
//清空openId
userService.emptyOpenId(reqVO.getOpenId());
//绑定用户openId