mirror of https://gitee.com/stylefeng/roses
【8.0】【auth】payload标识修改
parent
d503d1a172
commit
6e216f911f
|
@ -202,7 +202,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
|
|
||||||
// 生成用户的token
|
// 生成用户的token
|
||||||
DefaultJwtPayload defaultJwtPayload = new DefaultJwtPayload(loginUser.getUserId(), loginRequest.getAccount(),
|
DefaultJwtPayload defaultJwtPayload = new DefaultJwtPayload(loginUser.getUserId(), loginRequest.getAccount(),
|
||||||
loginRequest.getRememberMe(), null, null);
|
loginRequest.getRememberMe(), null);
|
||||||
String jwtToken = AuthJwtContext.me().generateTokenDefaultPayload(defaultJwtPayload);
|
String jwtToken = AuthJwtContext.me().generateTokenDefaultPayload(defaultJwtPayload);
|
||||||
loginUser.setToken(jwtToken);
|
loginUser.setToken(jwtToken);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue