From 8f3c8512cf526594988a00ddee8cafc1361463c4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 31 Jul 2018 22:10:15 -0400 Subject: [PATCH] null or whitespace --- src/Core/Services/Implementations/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index c137cb97bf..cd424e22c5 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -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."); }