免登录修改
This commit is contained in:
parent
0fadfeeecd
commit
18eda25d5c
@ -689,7 +689,11 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|||||||
if (list == null || list.size() == 0) {
|
if (list == null || list.size() == 0) {
|
||||||
throw new OpenAlertException(MessageUtil.get("notFindErr"));
|
throw new OpenAlertException(MessageUtil.get("notFindErr"));
|
||||||
}
|
}
|
||||||
return getUserInfo(list.get(0));
|
// return getUserInfo(list.get(0));
|
||||||
|
Map<String, Object> paramMap = new HashMap<>();
|
||||||
|
paramMap.put("account", list.get(0).getAccount());
|
||||||
|
paramMap.put("md5Password", list.get(0).getPassword());
|
||||||
|
return doLogin(paramMap, list.get(0));
|
||||||
} catch (AuthenticationException e) {
|
} catch (AuthenticationException e) {
|
||||||
log.error("error:", e);
|
log.error("error:", e);
|
||||||
throw new CustomException("Invalid username/password supplied", HttpStatus.UNPROCESSABLE_ENTITY);
|
throw new CustomException("Invalid username/password supplied", HttpStatus.UNPROCESSABLE_ENTITY);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user