diff --git a/src/main/java/app/controllers/AuthController.java b/src/main/java/app/controllers/AuthController.java index 2eeb4f6..76d2091 100644 --- a/src/main/java/app/controllers/AuthController.java +++ b/src/main/java/app/controllers/AuthController.java @@ -38,12 +38,16 @@ public class AuthController { Cookie cookie_steam64 = new Cookie("steam64",""); cookie_steam64.setMaxAge(0); cookie_steam64.setPath("/"); + cookie_steam64.setDomain("tf2.pblr-nyk.pro"); response.addCookie(cookie_steam64); Cookie cookie_steam64_secured = new Cookie("steam64_secured", ""); cookie_steam64_secured.setMaxAge(0); + cookie_steam64_secured.setDomain("tf2.pblr-nyk.pro"); cookie_steam64.setPath("/"); response.addCookie(cookie_steam64_secured); - return ResponseEntity.ok().body("logout..."); + return ResponseEntity.status(HttpStatus.FOUND). + header("Location", "/") + .build(); } @GetMapping("processlogin")