View Source PlausibleWeb.Components.TwoFactor (Plausible v0.0.1)

Reusable components specific to 2FA

Summary

Functions

Attributes

  • id (:string) (required)
  • state_param (:string) (required)
  • form_data (:any) (required)
  • form_target (:string) (required)
  • onsubmit (:string) - Defaults to nil.
  • title (:string) (required)

Slots

  • icon (required)
  • inner_block (required)
  • buttons (required)

Attributes

  • text (:string) (required)
  • scale (:integer) - Defaults to 4.

Attributes

  • id (:string) - Defaults to "verify-button".
  • form (:any) (required)
  • field (:any) (required)
  • class (:string) - Defaults to "".
  • show_button? (:boolean) - Defaults to true.

Functions

Attributes

  • id (:string) (required)
  • state_param (:string) (required)
  • form_data (:any) (required)
  • form_target (:string) (required)
  • onsubmit (:string) - Defaults to nil.
  • title (:string) (required)

Slots

  • icon (required)
  • inner_block (required)
  • buttons (required)

Attributes

  • text (:string) (required)
  • scale (:integer) - Defaults to 4.
Link to this function

verify_2fa_input(assigns)

View Source

Attributes

  • id (:string) - Defaults to "verify-button".
  • form (:any) (required)
  • field (:any) (required)
  • class (:string) - Defaults to "".
  • show_button? (:boolean) - Defaults to true.