记录登录信息状态值改为常量
parent
8b3d75a6a0
commit
34487865f3
|
@ -148,11 +148,11 @@ public class SysLoginService
|
||||||
// 日志状态
|
// 日志状态
|
||||||
if (StringUtils.equalsAny(status, Constants.LOGIN_SUCCESS, Constants.LOGOUT, Constants.REGISTER))
|
if (StringUtils.equalsAny(status, Constants.LOGIN_SUCCESS, Constants.LOGOUT, Constants.REGISTER))
|
||||||
{
|
{
|
||||||
logininfor.setStatus("0");
|
logininfor.setStatus(Constants.LOGIN_SUCCESS_STATUS);
|
||||||
}
|
}
|
||||||
else if (Constants.LOGIN_FAIL.equals(status))
|
else if (Constants.LOGIN_FAIL.equals(status))
|
||||||
{
|
{
|
||||||
logininfor.setStatus("1");
|
logininfor.setStatus(Constants.LOGIN_FAIL_STATUS);
|
||||||
}
|
}
|
||||||
remoteLogService.saveLogininfor(logininfor, SecurityConstants.INNER);
|
remoteLogService.saveLogininfor(logininfor, SecurityConstants.INNER);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,16 @@ public class Constants
|
||||||
*/
|
*/
|
||||||
public static final Integer FAIL = 500;
|
public static final Integer FAIL = 500;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录成功状态
|
||||||
|
*/
|
||||||
|
public static final String LOGIN_SUCCESS_STATUS = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录失败状态
|
||||||
|
*/
|
||||||
|
public static final String LOGIN_FAIL_STATUS = "0";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录成功
|
* 登录成功
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue