Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Component:TwoFactorCodeDialog: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
m UserspaceOnly
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{UserspaceOnlyComponent}}
{{Infobox Component
{{Infobox Component
|Image=TwoFactorCodeDialogComponent.png
|Image=TwoFactorCodeDialogComponent.png
|Name=Two Factor Code Dialog
|Name=Two Factor Code Dialog
}}
}}
{{stub}}
The '''TwoFactorCodeDialog''' component is used to accept and process a 2FA code from a user when logging into Resonite.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|_code|'''[[Component:TextField|TextField]]'''|TypeAdv0=true|
|_code|'''[[Component:TextField|TextField]]'''|TypeAdv0=true| The text field used to enter the 2FA code.
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|OnConfirm:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnConfirm:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Handles when the user hits the confirm code button.
}}
}}


== Behavior ==
== Usage ==
Not to be used by the user directly.


== Examples ==
== Examples ==
Used during log in via 2FA when logging into Resonite.


== See Also ==
== See Also ==
Line 23: Line 26:
[[Category:Components:Uncategorized{{#translation:}}|Two Factor Code Dialog]]
[[Category:Components:Uncategorized{{#translation:}}|Two Factor Code Dialog]]
[[Category:Components{{#translation:}}|Two Factor Code Dialog]]
[[Category:Components{{#translation:}}|Two Factor Code Dialog]]
[[Category:ComponentStubs]]

Latest revision as of 18:57, 23 January 2026

This is a Userspace Only component — It cannot be attached anywhere but inside the userspace. Changing components in userspace is not recommended and may break functionality of your dashboard. Proceed with caution even if you know what you're doing.
Component image 
File:TwoFactorCodeDialogComponent.png
Two Factor Code Dialog component as seen in the Scene Inspector

The TwoFactorCodeDialog component is used to accept and process a 2FA code from a user when logging into Resonite.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
_code TextField The text field used to enter the 2FA code.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnConfirm:ButtonEventHandler ButtonEventHandler Handles when the user hits the confirm code button.

Usage

Not to be used by the user directly.

Examples

Used during log in via 2FA when logging into Resonite.

See Also