Browse Source

logout

master
gsd 2 years ago
parent
commit
519b0c1350
  1. 6
      src/main/java/app/controllers/AuthController.java

6
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")

Loading…
Cancel
Save