1
0
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:
Kyle Spearrin 2018-07-31 22:10:15 -04:00
parent cf6334e37d
commit 8f3c8512cf

View File

@ -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.");
}