From abe674ccf82616f796f4b1e825585c7d7a5cef89 Mon Sep 17 00:00:00 2001 From: Spirtix Date: Mon, 28 Aug 2023 08:43:52 +0200 Subject: [PATCH] add missing endpoint to proxy --- mitm-redirect.py | 3 ++- src/Attributes/VikingSession.cs | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mitm-redirect.py b/mitm-redirect.py index bf21b65..ec8ca25 100644 --- a/mitm-redirect.py +++ b/mitm-redirect.py @@ -71,7 +71,8 @@ methods = [ 'SetAchievementByEntityIDs', 'UseInventory', 'DeleteProfile', - 'DeleteAccountNotification' + 'DeleteAccountNotification', + 'SetUserAchievementAndGetReward', ] def routable(path): diff --git a/src/Attributes/VikingSession.cs b/src/Attributes/VikingSession.cs index 41674cd..5edcc05 100644 --- a/src/Attributes/VikingSession.cs +++ b/src/Attributes/VikingSession.cs @@ -11,10 +11,6 @@ public class VikingSession : Attribute, IAsyncActionFilter { public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { DBContext ctx = ((AchievementController)context.Controller).ctx; - foreach (var a in context.ActionArguments.Keys) { - Console.WriteLine(a); - } - if (!context.HttpContext.Request.Form.ContainsKey("apiToken")) { context.Result = new UnauthorizedObjectResult("Unauthorized") { StatusCode = 403 }; return;