AshAuthentication.Phoenix.Components.Otp.RequestForm
(ash_authentication_phoenix v3.0.0-rc.6)
View Source
Generates the form for requesting an OTP code (step one of the OTP flow).
On successful submission this component runs the request action server-side
(which fires the configured sender) and notifies the parent
AshAuthentication.Phoenix.Components.Otp component to advance to the
verify phase.
Component hierarchy
This is a child of AshAuthentication.Phoenix.Components.Otp.
Children:
AshAuthentication.Phoenix.Components.Otp.Input.identity_field/1AshAuthentication.Phoenix.Components.Otp.Input.submit/1
Props
strategy- The OTP strategy configuration. Required.parent_id- The ID of the parentComponents.OtpLiveComponent. Required (used forsend_update).label- Text to show in theh2heading.falseto disable.overrides- A list of override modules.gettext_fn- Optional text translation function.
Overrides
This component provides the following overrides:
:root_class- CSS class for the rootdivelement.:form_class- CSS class for theformelement.:disable_button_text- Text for the submit button when the request is happening.:label_class- CSS class for theh2element.:request_flash_text- Text for the flash message shown after the OTP request is submitted. Set tonilto disable.
See AshAuthentication.Phoenix.Overrides for more information.