Rewrote reset password
This commit is contained in:
parent
03438afb94
commit
ae8245c457
|
@ -484,12 +484,8 @@ public class Controller : ControllerBase
|
||||||
if (user is null)
|
if (user is null)
|
||||||
return Unauthorized();
|
return Unauthorized();
|
||||||
|
|
||||||
//todo dont hardcode url
|
Db.DeleteUserPassword(user);
|
||||||
if (!Db.DeleteUserPassword(user))
|
|
||||||
{
|
|
||||||
return Unauthorized();
|
|
||||||
}
|
|
||||||
// Console.WriteLine("HELP");
|
|
||||||
return Redirect($"https://monitor.innov.energy/?username={user.Email}&reset=true");
|
return Redirect($"https://monitor.innov.energy/?username={user.Email}&reset=true");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue