mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 12:22:03 +08:00
优化代码
This commit is contained in:
@@ -68,7 +68,7 @@ public class LoginController {
|
||||
|
||||
@PostMapping("/logout")
|
||||
public JsonResponse logout() throws JwtLogoutException {
|
||||
jwtService.logout(RequestUtil.token(), SystemConstant.JWT_PRV_ADMIN_USER);
|
||||
jwtService.adminUserLogout(RequestUtil.token());
|
||||
return JsonResponse.success("success");
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ public class LoginController {
|
||||
|
||||
@PostMapping("/logout")
|
||||
public JsonResponse logout() throws JwtLogoutException {
|
||||
jwtService.userLogout(PlayEduFCtx.getToken());
|
||||
jwtService.userLogout(RequestUtil.token());
|
||||
ctx.publishEvent(new UserLogoutEvent(this, PlayEduFCtx.getUserId(), PlayEduFCtx.getJwtJti()));
|
||||
return JsonResponse.success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user