Rewrote reset password

This commit is contained in:
Kim 2023-10-23 17:04:27 +02:00
parent 03438afb94
commit ae8245c457
1 changed files with 2 additions and 6 deletions

View File

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