mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-12 11:25:38 +08:00
fix 因like而导致账号信息寻找错误的bug
This commit is contained in:
@@ -111,8 +111,8 @@ public class LoginServiceImpl implements ILoginService {
|
||||
if (loginPwdValidate.getScene().equals(LoginEnum.ACCOUNT_PASSWORD.getCode())) {
|
||||
User user = userMapper.selectOne(new QueryWrapper<User>()
|
||||
.nested(wq->wq
|
||||
.like("account", account).or()
|
||||
.like("mobile", account).or()
|
||||
.eq("account", account).or()
|
||||
.eq("mobile", account).or()
|
||||
)
|
||||
.isNull("delete_time")
|
||||
.last("limit 1"));
|
||||
|
||||
Reference in New Issue
Block a user