This commit is contained in:
mmrbnjd
2025-07-07 22:04:07 +03:30
parent 2432ab293f
commit 1924c88e7a
8 changed files with 94 additions and 10 deletions

View File

@@ -27,7 +27,11 @@ namespace Hushian.Application.Services
private readonly IGenericRepository<User> _UserRepository;
private readonly IGenericRepository<Exper> _ExperRepository;
private readonly VerificationService _verificationService;
public AuthService(IOptions<JwtSettings> jwtSettings, IGenericRepository<Company> companyRepository, IGenericRepository<User> userRepository, IGenericRepository<Exper> experRepository, VerificationService verificationService)
public AuthService(IOptions<JwtSettings> jwtSettings
, IGenericRepository<Company> companyRepository
, IGenericRepository<User> userRepository
, IGenericRepository<Exper> experRepository
, VerificationService verificationService)
{
_jwtSettings = jwtSettings.Value;
_CompanyRepository = companyRepository;
@@ -119,8 +123,6 @@ namespace Hushian.Application.Services
public async Task<JwtSecurityToken> GenerateToken(string UserName, int userId)
{
var claims = new[]
{
new Claim(JwtRegisteredClaimNames.Sub,UserName),