From d799293a0e4396f77a6ddc60253bdaaad5616848 Mon Sep 17 00:00:00 2001 From: gsd Date: Wed, 1 Mar 2023 20:49:35 +0300 Subject: [PATCH] profile methods now request secretkey --- src/main/java/app/controllers/user/DetailController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/app/controllers/user/DetailController.java b/src/main/java/app/controllers/user/DetailController.java index 1c44e74..eb135a6 100644 --- a/src/main/java/app/controllers/user/DetailController.java +++ b/src/main/java/app/controllers/user/DetailController.java @@ -1,5 +1,6 @@ package app.controllers.user; +import app.annotations.enums.AuthMethod; import app.annotations.interfaces.CheckPermitionFlag; import app.annotations.interfaces.CheckWebAccess; import app.entities.other.SteamID; @@ -24,16 +25,14 @@ public class DetailController { } @GetMapping - @CheckWebAccess - @CheckPermitionFlag(flag = "z") + @CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) public ResponseEntity GetUser(HttpServletRequest request, @RequestParam String steam64) { return new ResponseEntity(profileService.GetProfile(steam64), HttpStatus.OK); } @GetMapping("/steam") - @CheckWebAccess - @CheckPermitionFlag(flag = "z") + @CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) public ResponseEntity GetSteam(HttpServletRequest request, @RequestParam String any) { return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(any), HttpStatus.OK);