feat(auth): extend LoginResponse with username + mustChangePassword + ultimoLogin [UDT-008]
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using SIGCM2.Application.Common;
|
||||
using SIGCM2.Domain.Entities;
|
||||
|
||||
namespace SIGCM2.Application.Abstractions.Persistence;
|
||||
@@ -8,4 +9,12 @@ public interface IUsuarioRepository
|
||||
Task<Usuario?> GetByIdAsync(int id, CancellationToken ct = default);
|
||||
Task<bool> ExistsByUsernameAsync(string username, CancellationToken ct = default);
|
||||
Task<int> AddAsync(Usuario usuario, CancellationToken ct = default);
|
||||
|
||||
// UDT-008
|
||||
Task UpdateUltimoLoginAsync(int id, DateTime utcNow, CancellationToken ct = default);
|
||||
Task<PagedResult<UsuarioListItem>> GetPagedAsync(UsuariosQuery query, CancellationToken ct = default);
|
||||
Task<Usuario?> GetDetailAsync(int id, CancellationToken ct = default);
|
||||
Task UpdateAsync(int id, UpdateUsuarioFields fields, DateTime fechaModificacion, CancellationToken ct = default);
|
||||
Task UpdatePasswordAsync(int id, string passwordHash, bool mustChangePassword, CancellationToken ct = default);
|
||||
Task<int> CountActiveAdminsAsync(CancellationToken ct = default);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user