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"); }