1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

PS-661 Fix Captcha Bypass Token Validation (#2004)

This commit is contained in:
Federico Maccaroni
2022-05-19 10:15:49 -03:00
committed by GitHub
parent a266772ec3
commit e314537713

View File

@ -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);