20 lines
991 B
C#
20 lines
991 B
C#
|
|
using MotoresArgentinosV2.Core.DTOs;
|
||
|
|
using MotoresArgentinosV2.Core.Entities;
|
||
|
|
|
||
|
|
namespace MotoresArgentinosV2.Core.Interfaces;
|
||
|
|
|
||
|
|
public interface IIdentityService
|
||
|
|
{
|
||
|
|
Task<(User? User, string? MigrationMessage)> AuthenticateAsync(string username, string password);
|
||
|
|
|
||
|
|
Task<bool> MigratePasswordAsync(string username, string newPassword);
|
||
|
|
|
||
|
|
// métodos para registro
|
||
|
|
Task<(bool Success, string Message)> RegisterUserAsync(RegisterRequest request);
|
||
|
|
Task<(bool Success, string Message)> VerifyEmailAsync(string token);
|
||
|
|
Task<(bool Success, string Message)> ResendVerificationEmailAsync(string email);
|
||
|
|
Task<(bool Success, string Message)> ForgotPasswordAsync(string email);
|
||
|
|
Task<(bool Success, string Message)> ResetPasswordAsync(string token, string newPassword);
|
||
|
|
Task<(bool Success, string Message)> ChangePasswordAsync(int userId, string current, string newPwd);
|
||
|
|
Task<User> CreateGhostUserAsync(string email, string firstName, string lastName, string phone);
|
||
|
|
}
|