Component:TwoFactorCodeDialog: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
add info
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{UserspaceComponent}}
{{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 19:17, 30 April 2025

This is a userspace component — you cannot attach it anywhere but the userspace. Messing with the userspace can be fun, but it is not recommended as you risk messing your dash up if you don't 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