1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

log captcha response info (#2018)

* log captcha response info

* wrap in isBot condition
This commit is contained in:
Kyle Spearrin
2022-05-26 14:33:02 -04:00
committed by GitHub
parent a788478af3
commit 810b653915
3 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,7 @@ namespace Bit.Core.Services
var score = hcaptchaResponse.Score.GetValueOrDefault();
response.MaybeBot = score >= _globalSettings.Captcha.MaybeBotScoreThreshold;
response.IsBot = score >= _globalSettings.Captcha.IsBotScoreThreshold;
response.Score = score;
return response;
}