Revize c349bab3
Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)
Backend/Core/Services/UserService/UserServiceEF.cs | ||
---|---|---|
44 | 44 |
User u = _databaseContext.Users.First(u => u.Username == username); |
45 | 45 |
if (!BCrypt.Net.BCrypt.Verify(password, u.Password)) |
46 | 46 |
{ |
47 |
_logger.Information($"Password for user {username} don't match."); |
|
47 |
_logger.Information($"Password for user {username} doesn't match.");
|
|
48 | 48 |
return null; |
49 | 49 |
} |
50 | 50 |
return u; |
... | ... | |
93 | 93 |
} |
94 | 94 |
} |
95 | 95 |
|
96 |
public User? GetUserByGuid(Guid id)
|
|
96 |
public User? GetUserById(Guid id)
|
|
97 | 97 |
{ |
98 | 98 |
try |
99 | 99 |
{ |
Také k dispozici: Unified diff
Backend - JWT Authentication done