mirror of https://gitee.com/stylefeng/roses
【7.0.4】【auth】更新登录接口
parent
20ae3b25c9
commit
8697d2d064
|
@ -72,4 +72,9 @@ public class LoginRequest extends BaseRequest {
|
|||
*/
|
||||
private Boolean createCookie = false;
|
||||
|
||||
/**
|
||||
* 租户编码
|
||||
*/
|
||||
private String tenantCode;
|
||||
|
||||
}
|
||||
|
|
|
@ -297,6 +297,9 @@ public class AuthServiceImpl implements AuthServiceApi {
|
|||
String jwtToken = JwtContext.me().generateTokenDefaultPayload(defaultJwtPayload);
|
||||
loginUser.setToken(jwtToken);
|
||||
|
||||
// 如果包含租户编码,则放到loginUser中
|
||||
loginUser.setTenantCode(loginRequest.getTenantCode());
|
||||
|
||||
synchronized (SESSION_OPERATE_LOCK) {
|
||||
|
||||
// 9.1 获取ws-url 保存到用户信息中
|
||||
|
|
Loading…
Reference in New Issue