mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
InvitesRepositoryTests
+ other reworks
This commit is contained in:
@@ -38,7 +38,7 @@ public class AuthService : IAccountService
|
||||
throw new UserAlreadyExistException(name);
|
||||
|
||||
// 2. Проверка валидности инвайта
|
||||
var invite = await _invitesRepository.GetByCodeAsync(inviteCode);
|
||||
var invite = await _invitesRepository.FindByCodeAsync(inviteCode);
|
||||
|
||||
// 3. Генерация пароля
|
||||
var passwordHash = _passwordHasher.Hash(password);
|
||||
|
||||
@@ -22,7 +22,7 @@ public class JwtService : IJwtService
|
||||
|
||||
public string GenerateJwtToken(User user)
|
||||
{
|
||||
var invite = _invitesRepository.GetByIdAsync(user.InviteId).Result;
|
||||
var invite = _invitesRepository.FindByIdAsync(user.InviteId).Result;
|
||||
|
||||
var claims = new[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user