From ae8245c457c4b1671f56ca753ab6e6c604f25280 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 23 Oct 2023 17:04:27 +0200 Subject: [PATCH] Rewrote reset password --- csharp/App/Backend/Controller.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/csharp/App/Backend/Controller.cs b/csharp/App/Backend/Controller.cs index aeab9e829..0c4af1a87 100644 --- a/csharp/App/Backend/Controller.cs +++ b/csharp/App/Backend/Controller.cs @@ -484,12 +484,8 @@ public class Controller : ControllerBase if (user is null) return Unauthorized(); - //todo dont hardcode url - if (!Db.DeleteUserPassword(user)) - { - return Unauthorized(); - } - // Console.WriteLine("HELP"); + Db.DeleteUserPassword(user); + return Redirect($"https://monitor.innov.energy/?username={user.Email}&reset=true"); }