...
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user