Init Commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user