mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-03 19:03:22 +00:00
15 lines
817 B
C#
15 lines
817 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IAuthenticationService
|
||
|
|
{
|
||
|
|
Task<LoginResultDTO?> LoginAsync(string? username, string? password, CancellationToken cancellationToken);
|
||
|
|
Task<bool> ChangePasswordAsync(string userId, string? currentPassword, string? confirmPassword, CancellationToken cancellationToken);
|
||
|
|
Task<UserProfileDTO?> UpdateProfileAsync(string userId, UpdateProfileRequestDTO dto, CancellationToken cancellationToken);
|
||
|
|
Task<bool> ForgetPasswordAsync(string email, CancellationToken cancellationToken);
|
||
|
|
Task<bool> VerifyCodeAsync(string code, CancellationToken cancellationToken);
|
||
|
|
Task<bool> ResetPasswordAsync(string email, string? code, string? password, CancellationToken cancellationToken);
|
||
|
|
}
|
||
|
|
}
|