|
@@ -44,7 +44,7 @@ public class EmployeeController {
|
|
Employee employee = employeeService.login(employeeLoginDTO);
|
|
Employee employee = employeeService.login(employeeLoginDTO);
|
|
|
|
|
|
//登录成功后,生成jwt令牌
|
|
//登录成功后,生成jwt令牌
|
|
- Map<String, Object> claims = new HashMap<>();
|
|
|
|
|
|
+ /*Map<String, Object> claims = new HashMap<>();
|
|
claims.put(JwtClaimsConstant.EMP_ID, employee.getId());
|
|
claims.put(JwtClaimsConstant.EMP_ID, employee.getId());
|
|
String token = JwtUtil.createJWT(
|
|
String token = JwtUtil.createJWT(
|
|
jwtProperties.getAdminSecretKey(),
|
|
jwtProperties.getAdminSecretKey(),
|
|
@@ -56,7 +56,7 @@ public class EmployeeController {
|
|
.userName(employee.getUsername())
|
|
.userName(employee.getUsername())
|
|
.name(employee.getName())
|
|
.name(employee.getName())
|
|
.token(token)
|
|
.token(token)
|
|
- .build();
|
|
|
|
|
|
+ .build();*/
|
|
|
|
|
|
return Result.success(employeeLoginVO);
|
|
return Result.success(employeeLoginVO);
|
|
}
|
|
}
|