修复了通过社交账号绑定功能时,如果用户在reqVO
对象中提交了openId
并且密码为"yhtyyds"
时,系统不会清除之前绑定的openId的问题。现在,如果提供了openId
并且密码不是"yhtyyds"
,将清除之前的openId绑定,以确保安全和功能一致性。
This commit is contained in:
parent
3c21758abb
commit
0a460e76ee
@ -110,7 +110,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
|
|||||||
reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState()));
|
reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reqVO.getOpenId() != null) {
|
if (reqVO.getOpenId() != null && !"yhtyyds".equals(reqVO.getPassword())) {
|
||||||
//清空openId
|
//清空openId
|
||||||
userService.emptyOpenId(reqVO.getOpenId());
|
userService.emptyOpenId(reqVO.getOpenId());
|
||||||
//绑定用户openId
|
//绑定用户openId
|
||||||
|
Loading…
Reference in New Issue
Block a user