mirror of
https://github.com/bitwarden/server.git
synced 2025-05-31 00:00:34 -05: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(await CheckPasswordAsync(user, masterPassword))
|
||||||
{
|
{
|
||||||
if(user.Key != null)
|
if(!string.IsNullOrWhiteSpace(user.Key))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("User already has an updated encryption key.");
|
throw new BadRequestException("User already has an updated encryption key.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user