From 4f2288405028016d9d4ed0915796d8faeebf10da Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 10 Aug 2023 23:31:23 +0300 Subject: [PATCH] steam auth 6 --- src/main/java/app/controllers/auth/AuthSteamController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/app/controllers/auth/AuthSteamController.java b/src/main/java/app/controllers/auth/AuthSteamController.java index 4344ca3..34802dd 100644 --- a/src/main/java/app/controllers/auth/AuthSteamController.java +++ b/src/main/java/app/controllers/auth/AuthSteamController.java @@ -19,6 +19,7 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.util.Map; +import java.util.Objects; @RestController @RequestMapping("/api/auth") @@ -75,7 +76,7 @@ public class AuthSteamController { cookie_steam64_secured.setDomain("tf2.pblr-nyk.pro"); response.addCookie(cookie_steam64_secured); - String move = after == "disco"?"/authentication_discord.html":"/"; + String move = Objects.equals(after, "disco")?"/authentication_discord.html":"/"; return ResponseEntity.status(HttpStatus.FOUND). header("Location", move) .build();