mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
null or whitespace
This commit is contained in:
@@ -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.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user