now the component login dont give access to inactive

This commit is contained in:
2026-03-04 11:16:14 -06:00
parent 04290f4097
commit 54d878c145
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -28,6 +28,10 @@ export class UserService {
where: { usuario, password },
});
if(user?.activo === 0){
throw new NotFoundException(`El usuario se encuentra desactivado`);
}
if (!user) {
throw new NotFoundException(`El usuario o la contraseña es incorrecta`);
}