|
|
|
@ -88,9 +88,6 @@ public class TokenController { |
|
|
|
String md5Hex = DigestUtils.md5Hex(password); |
|
|
|
LoginUser userInfo = this.sysLoginService.login(username, md5Hex, request); |
|
|
|
Map<String, Object> map = this.tokenService.createToken(userInfo); |
|
|
|
Map<String, Object> mapApi = new HashMap(); |
|
|
|
mapApi.put("key", "Authorization"); |
|
|
|
mapApi.put("value", "Bearer " + map.get(TokenConst.ACCESS_TOKEN)); |
|
|
|
return Response.ok(mapApi, "操作成功"); |
|
|
|
return Response.ok(map, "操作成功"); |
|
|
|
} |
|
|
|
} |