Skip to content

ViewSetupDevice ​

Overview ​

Multi-step form that guides the user through enrolling a two-factor authentication device. Presents a method-selection step (TOTP app, email, or SMS), then a verification step where the user confirms the device with a one-time code, then a confirmation step.

Theme entry: ViewSetupDevice

Props ​

NameTypeRequiredDefaultDescription
iconOverrideObjectnullA partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants.
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
appstringyesDjango app label for the model that represents the 2FA device.
modelstringyesModel name for the 2FA device (used to fetch available method choices).
actionstring"setup"Action name sent to the server when initiating device setup.

Slots ​

action-form-inner ​

Scoped slot.

Bindings ​

NameDescription
options
totpDataUri
totpSecret
method
step

totp-app-setup-step ​

Scoped slot.

Bindings ​

NameDescription
totpDataUri
totpSecret

confirm-button ​

Scoped slot.

Bindings ​

NameDescription
loading

cancel-button ​

Scoped slot.

Bindings ​

NameDescription
loading
handleCancelClick

Source ​

client/lib/views/ViewSetupDevice.vue