mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Auth Tests
This commit is contained in:
@@ -4,6 +4,7 @@ using Govor.Core.Models;
|
||||
using Govor.Core.Repositories;
|
||||
using Govor.Core.Repositories.Users;
|
||||
using Govor.Core.Services;
|
||||
using Govor.Data.Repositories;
|
||||
|
||||
namespace Govor.API.Services.Authentication;
|
||||
|
||||
@@ -39,7 +40,7 @@ public class AuthService : IAccountService
|
||||
//Role = role == "Admin" ? "Admin" : "User" // Ограничение ролей
|
||||
};
|
||||
|
||||
//await _usersRepository.AddAsync(user);
|
||||
await _usersRepository.AddAsync(user);
|
||||
|
||||
return _jwtService.GenerateJwtToken(user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user