mirror of
https://github.com/bitwarden/server.git
synced 2025-01-26 22:31:30 +01:00
null or whitespace
This commit is contained in:
parent
cf6334e37d
commit
8f3c8512cf
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user