Module: Mutations::SpamProtection
- Extended by:
- ActiveSupport::Concern
- Included in:
- Issues::Create, Issues::SetConfidential, Mutations::Snippets::Create, Mutations::Snippets::Update, WorkItems::Convert, WorkItems::Create, WorkItems::CreateFromTask, WorkItems::Update, WorkItems::UpdateTask
- Defined in:
- app/graphql/mutations/concerns/mutations/spam_protection.rb
Overview
This concern can be mixed into a mutation to provide support for spam checking, and optionally support the workflow to allow clients to display and solve CAPTCHAs.
Constant Summary collapse
- SpamActionError =
Class.new(GraphQL::ExecutionError)
- NeedsCaptchaResponseError =
Class.new(SpamActionError)
- SpamDisallowedError =
Class.new(SpamActionError)
- NEEDS_CAPTCHA_RESPONSE_MESSAGE =
"Request denied. Solve CAPTCHA challenge and retry"
- SPAM_DISALLOWED_MESSAGE =
"Request denied. Spam detected"