This commit is contained in:
mmrbnjd
2025-06-29 16:14:42 +03:30
parent 86de5d3e39
commit bc65878608
7 changed files with 165 additions and 3 deletions

View File

@@ -22,7 +22,16 @@ namespace Hushian.Application.Services
private readonly IMessageSender _messageSender;
private readonly IGenericRepository<User> _UserRepository;
private readonly AuthService _authService;
public async Task<int> GenerateCodeForLoginUser(string Mobile)
public VerificationService(IGenericRepository<VerificationCode> verificationCodeRepository, IMessageSender messageSender, IGenericRepository<User> userRepository, AuthService authService)
{
_VerificationCodeRepository = verificationCodeRepository;
_messageSender = messageSender;
_UserRepository = userRepository;
_authService = authService;
}
public async Task<int> GenerateCodeForLoginUser(string Mobile)
{
string Code = await GenerateCode();
var response= await _VerificationCodeRepository.ADD