From 6d850bcc4d8d0d64165dd43a4a843b9d908db064 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 17 Feb 2024 11:17:49 -0300 Subject: [PATCH] wip --- OpenAdm.Application/Services/EsqueceuSenhaService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenAdm.Application/Services/EsqueceuSenhaService.cs b/OpenAdm.Application/Services/EsqueceuSenhaService.cs index 4e35c2a..689dcff 100644 --- a/OpenAdm.Application/Services/EsqueceuSenhaService.cs +++ b/OpenAdm.Application/Services/EsqueceuSenhaService.cs @@ -46,6 +46,10 @@ public async Task EsqueceuSenhaAsync(EsqueceuSenhaDto esqueceuSenhaDto) usuario.UpdateSenha(newSenha); await _usuarioRepository.UpdateAsync(usuario); } + else + { + throw new Exception(CodigoErrors.ErrorGeneric); + } return result; }