Rewrote reset password
This commit is contained in:
parent
03438afb94
commit
ae8245c457
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue