|
|
@@ -41,7 +41,8 @@ public class AuthController {
|
|
|
Result<AccountDTO> result = accountApi.validByUsernameAndPwd(username, password);
|
|
|
if (result.isSuccess()) {
|
|
|
AccountDTO accountDTO = result.getData();
|
|
|
- JwtInfo info = new JwtInfo(accountDTO.getCompanyId(), accountDTO.getId(), accountDTO.getUsername());
|
|
|
+ // TODO
|
|
|
+ JwtInfo info = new JwtInfo(null, accountDTO.getId(), accountDTO.getUsername());
|
|
|
TokenVO tokenVO = JwtHelper.generateToken(info, privateKeyPath, expire);
|
|
|
TokenDTO tokenDTO = BeanMapper.map(tokenVO, TokenDTO.class);
|
|
|
return Result.success(tokenDTO);
|