From 519b0c1350f9a8c6636587ea05087fdbd7fb09b2 Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 16 Feb 2023 14:59:09 +0300 Subject: [PATCH] logout --- src/main/java/app/controllers/AuthController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")