|
|
|
@ -253,17 +253,7 @@ public class LoginPersonModel {
|
|
|
|
|
}
|
|
|
|
|
//去掉限制
|
|
|
|
|
RedisKit.del(PassWordKey);
|
|
|
|
|
//防止用户攻击修改Cookie
|
|
|
|
|
Map<String, Object> _map = new HashMap<>();
|
|
|
|
|
_map.put("identity_id", loginMap.get("identity_id"));
|
|
|
|
|
_map.put("person_id", loginMap.get("person_id"));
|
|
|
|
|
_map.put("bureau_id", loginMap.get("bureau_id"));
|
|
|
|
|
|
|
|
|
|
String token = CommonUtil.Sign(_map, BaseApplication.PropKit.get("CookieMd5SingPwd"));
|
|
|
|
|
CookieUtil.set(response, "identity_id", loginMap.get("identity_id").toString(), false, true);
|
|
|
|
|
CookieUtil.set(response, "person_id", loginMap.get("person_id").toString(), false, true);
|
|
|
|
|
CookieUtil.set(response, "bureau_id", loginMap.get("bureau_id").toString(), false, true);
|
|
|
|
|
CookieUtil.set(response, "token", token, false, true);
|
|
|
|
|
//添加返回的Token JWT
|
|
|
|
|
String jwtToken = JwtUtil.generateToken(Integer.parseInt(loginMap.get("identity_id").toString()), loginMap.get("person_id").toString(), loginMap.get("bureau_id").toString());
|
|
|
|
|
resultJson.put("success", true);
|
|
|
|
|