Update UsuarioController.cs
This commit is contained in:
@@ -77,8 +77,11 @@ public class UsuarioController : ControllerBase
|
||||
bool ret = RepositorioUsuarios.Singleton.SetF2aPin(pin, mails.Email);
|
||||
if (ret == false) return BadRequest(new { message = "no se pudo generar/guardar el codigo 2fa" });
|
||||
|
||||
OtpEmailSender s = new();
|
||||
s.Send(mails.EmailRecuperacion, mails.Email, pin);
|
||||
Task.Run(() =>
|
||||
{
|
||||
OtpEmailSender s = new();
|
||||
s.Send(mails.EmailRecuperacion, mails.Email, pin);
|
||||
});
|
||||
|
||||
return Ok(new { message = $"Se envio un email de recuperacion a {mails.EmailRecuperacion}" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user