mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
PS-661 Fix Captcha Bypass Token Validation (#2004)
This commit is contained in:
parent
a266772ec3
commit
e314537713
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user