|
|
|
@ -385,7 +385,7 @@ public class FontController {
|
|
|
|
|
if(StringUtils.isBlank(password)){
|
|
|
|
|
return Msg.fail("密码不能为空");
|
|
|
|
|
}
|
|
|
|
|
Power_User user = new Power_User();
|
|
|
|
|
Power_UserVo user = new Power_UserVo();
|
|
|
|
|
user.setUserName(userName);
|
|
|
|
|
//归档特殊token=1462903487866169011
|
|
|
|
|
if("1462903487866169011".equals(password)){
|
|
|
|
@ -434,8 +434,8 @@ public class FontController {
|
|
|
|
|
}
|
|
|
|
|
userVo.setRemark(powerDepts.toString());
|
|
|
|
|
ActionScopeUtils.setSessionAttribute("token",token,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)));
|
|
|
|
|
ActionScopeUtils.setSessionAttribute("CURRENT_USER",user,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)));
|
|
|
|
|
CacheManager.putCache(token,new Cache(user,System.currentTimeMillis(),TOKEN_EXPIRE_TIME*1000));
|
|
|
|
|
ActionScopeUtils.setSessionAttribute("CURRENT_USER",userVo,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)));
|
|
|
|
|
CacheManager.putCache(token,new Cache(userVo,System.currentTimeMillis(),TOKEN_EXPIRE_TIME*1000));
|
|
|
|
|
return Msg.success().add("token",token);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|