mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
log captcha response info (#2018)
* log captcha response info * wrap in isBot condition
This commit is contained in:
@ -82,6 +82,12 @@ namespace Bit.Core.IdentityServer
|
||||
CustomValidatorRequestContext validatorContext)
|
||||
{
|
||||
var isBot = (validatorContext.CaptchaResponse?.IsBot ?? false);
|
||||
if (isBot)
|
||||
{
|
||||
_logger.LogInformation(Constants.BypassFiltersEventId,
|
||||
"Login attempt for {0} detected as a captcha bot with score {1}.",
|
||||
request.UserName, validatorContext.CaptchaResponse.Score);
|
||||
}
|
||||
|
||||
var twoFactorToken = request.Raw["TwoFactorToken"]?.ToString();
|
||||
var twoFactorProvider = request.Raw["TwoFactorProvider"]?.ToString();
|
||||
|
Reference in New Issue
Block a user