Browse Source

steam auth 6

master
gsd 2 years ago
parent
commit
4f22884050
  1. 3
      src/main/java/app/controllers/auth/AuthSteamController.java

3
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();

Loading…
Cancel
Save