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.
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
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
totp-data-uri
totp-secret
method
step

totp-app-setup-step

Scoped slot.

Bindings

NameDescription
totp-data-uri
totp-secret

confirm-button

Scoped slot.

Bindings

NameDescription
loading

cancel-button

Scoped slot.

Bindings

NameDescription
loading
handleCancelClick

Source

client/lib/views/ViewSetupDevice.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2