From e3145377136a467f5337e06bb4781df229e7b5f9 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Thu, 19 May 2022 10:15:49 -0300 Subject: [PATCH] PS-661 Fix Captcha Bypass Token Validation (#2004) --- 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 508bd8ad9..44b88d729 100644 --- a/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs +++ b/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs @@ -82,7 +82,7 @@ namespace Bit.Core.IdentityServer } validatorContext.CaptchaResponse = await _captchaValidationService.ValidateCaptchaResponseAsync( - captchaResponse, _currentContext.IpAddress, null); + captchaResponse, _currentContext.IpAddress, user); if (!validatorContext.CaptchaResponse.Success) { await BuildErrorResultAsync("Captcha is invalid. Please refresh and try again", false, context, null);