mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
re-working claims for aspnet core identity integration and backwards compat
This commit is contained in:
@ -57,6 +57,17 @@ namespace Bit.Core.Services
|
||||
_passwordValidators = passwordValidators;
|
||||
}
|
||||
|
||||
public async Task<User> GetUserByIdAsync(string userId)
|
||||
{
|
||||
Guid userIdGuid;
|
||||
if(!Guid.TryParse(userId, out userIdGuid))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return await _userRepository.GetByIdAsync(userIdGuid);
|
||||
}
|
||||
|
||||
public async Task<User> GetUserByIdAsync(Guid userId)
|
||||
{
|
||||
return await _userRepository.GetByIdAsync(userId);
|
||||
|
Reference in New Issue
Block a user