From 73cc221deb559bb27a32e80f7b5dff69e4adadae Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 13 Nov 2018 11:37:09 -0500 Subject: [PATCH] Allow UpdateKeyAsync when user already has key --- src/Core/Services/Implementations/UserService.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 44db54fc66..1f9985377d 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -548,11 +548,6 @@ namespace Bit.Core.Services if(await CheckPasswordAsync(user, masterPassword)) { - if(!string.IsNullOrWhiteSpace(user.Key)) - { - throw new BadRequestException("User already has an updated encryption key."); - } - user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow; user.SecurityStamp = Guid.NewGuid().ToString(); user.Key = key;