Commit a782737e by shiwenbo

场站系统与购砂单位系统登录之后返回场站和购砂单位的id

parent 914e2de1
......@@ -56,6 +56,7 @@ public class RESTWarehouseUserAuthenticationSuccessHandler extends SimpleUrlAuth
session.setAttribute(AuthcConstants.USERNAME, warehouseUser.getUsername());
session.setAttribute(AuthcConstants.TELEPHONE, warehouseUser.getTelephone());
session.setAttribute(AuthcConstants.TITLE, warehouseUser.getTitle());
session.setAttribute("stationId", warehouseUser.getStationId());
session.setAttribute("mobile", true);
session.setMaxInactiveInterval(30 * 24 * 60 * 60);
......@@ -69,6 +70,7 @@ public class RESTWarehouseUserAuthenticationSuccessHandler extends SimpleUrlAuth
returnJson.put(AuthcConstants.USERNAME, warehouseUser.getUsername());
returnJson.put(AuthcConstants.TELEPHONE, warehouseUser.getTelephone());
returnJson.put(AuthcConstants.TITLE, warehouseUser.getTitle());
returnJson.put("stationId", warehouseUser.getStationId());
returnJson.put(AuthcConstants.MESSAGE, "success");
returnJson.put(AuthcConstants.TOKEN, attr.getSessionId());
returnJson.put(AuthcConstants.TENANT, tenant);
......
......@@ -55,6 +55,7 @@ public class SandUserAuthenticationSuccessHandler extends SimpleUrlAuthenticatio
request.getSession().setAttribute(AuthcConstants.USERNAME, SandUser.getUsername());
request.getSession().setAttribute(AuthcConstants.TELEPHONE, SandUser.getTelephone());
request.getSession().setAttribute(AuthcConstants.TITLE, SandUser.getTitle());
request.getSession().setAttribute("sandId", SandUser.getSandId());
request.getSession().setAttribute("mobile", true);
request.getSession().setMaxInactiveInterval(30 * 24 * 60 * 60);
......@@ -67,6 +68,7 @@ public class SandUserAuthenticationSuccessHandler extends SimpleUrlAuthenticatio
returnJson.put(AuthcConstants.USERNAME, SandUser.getUsername());
returnJson.put(AuthcConstants.TELEPHONE, SandUser.getTelephone());
returnJson.put(AuthcConstants.TITLE, SandUser.getTitle());
returnJson.put("sandId", SandUser.getSandId());
returnJson.put(AuthcConstants.MESSAGE, "success");
returnJson.put(AuthcConstants.TOKEN, attr.getSessionId());
returnJson.put(AuthcConstants.TENANT, tenant);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment