mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
async Task<string> GenerateJwtTokenAsync(User user)
This commit is contained in:
@@ -57,7 +57,7 @@ public class AuthService : IAccountService
|
||||
|
||||
SetRole(user, invitation);
|
||||
|
||||
return _jwtService.GenerateJwtToken(user);
|
||||
return await _jwtService.GenerateJwtTokenAsync(user);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class AuthService : IAccountService
|
||||
if (_passwordHasher.Verify(password, user.PasswordHash) == false)
|
||||
throw new LoginUserException();
|
||||
|
||||
return _jwtService.GenerateJwtToken(user);
|
||||
return await _jwtService.GenerateJwtTokenAsync(user);
|
||||
}
|
||||
|
||||
private async void SetRole(User user, Invitation invitation)
|
||||
|
||||
Reference in New Issue
Block a user