mirror of
https://github.com/bitwarden/server
synced 2025-12-14 23:33:41 +00:00
null or whitespace
This commit is contained in:
@@ -456,7 +456,7 @@ namespace Bit.Core.Services
|
||||
|
||||
if(await CheckPasswordAsync(user, masterPassword))
|
||||
{
|
||||
if(user.Key != null)
|
||||
if(!string.IsNullOrWhiteSpace(user.Key))
|
||||
{
|
||||
throw new BadRequestException("User already has an updated encryption key.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user