Public Access
Update UsuarioController.cs
This commit is contained in:
1 parent
deb4b90c18
commit
faa3f386a9
1 file changed
+5
-2
@@ -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