From 44f30e7948fbd3d119407b72130c228bf593f223 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 11 Oct 2021 09:53:19 -0500 Subject: [PATCH] Remove erroneous not (#1629) --- src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs b/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs index 57eb5bd7fd..9a3fa707c5 100644 --- a/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs +++ b/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs @@ -60,7 +60,7 @@ namespace Bit.Core.IdentityServer string bypassToken = null; var user = await _userManager.FindByEmailAsync(context.UserName.ToLowerInvariant()); var unknownDevice = !await KnownDeviceAsync(user, context.Request); - if (!unknownDevice && _captchaValidationService.RequireCaptchaValidation(_currentContext)) + if (unknownDevice && _captchaValidationService.RequireCaptchaValidation(_currentContext)) { var captchaResponse = context.Request.Raw["captchaResponse"]?.ToString();