MishkaCmsCore.Accounts.CaptchaCheck.Refused exception (Mishka CMS Core v0.0.1)

Copy Markdown View Source

A form sent without the captcha its site asks (reason: :missing) or with one that did not pass (reason: :failed): :form is the form — :sign_in, :register, :reset_request, :magic_link, or an extension's own — and :site_id its site (nil for a master's). Shown by the sign-in pages and the /api/auth routes as their own notice; see MishkaCmsCore.Accounts.CaptchaCheck.describe/1.

Summary

Types

t()

@type t() :: %MishkaCmsCore.Accounts.CaptchaCheck.Refused{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  form: term(),
  path: term(),
  reason: term(),
  site_id: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %MishkaCmsCore.Accounts.CaptchaCheck.Refused{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  form: term(),
  path: term(),
  reason: term(),
  site_id: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.MishkaCmsCore.Accounts.CaptchaCheck.Refused without raising it.

Keys

  • :reason
  • :form
  • :site_id