1
0
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:
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(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.");
} }