Component:LoginDialog: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{UserspaceComponent}}
{{Infobox Component
{{Infobox Component
|Image=LoginDialogComponent.png
|Image=LoginDialogComponent.png
|Name=Login Dialog
|Name=Login Dialog
}}
}}
{{stub}}
The '''LoginDialog''' component is used in internal systems and may be replaced at any time. It is used to handle the logging in for users and the UI for such interactions.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|RegisterOnly|Bool|
|RegisterOnly|Bool| Whether user should just be registered and not log in afterwards.
|_interactionEnabled|Bool|
|_interactionEnabled|Bool| Whether interacting with this component is enabled.
|_swapRegion|'''[[Component:SlideSwapRegion|SlideSwapRegion]]'''|TypeAdv2=true|
|_swapRegion|'''[[Component:SlideSwapRegion|SlideSwapRegion]]'''|TypeAdv2=true| Handles the slide animation as this dialogue changes pages.
|_username|'''[[Component:TextField|TextField]]'''|TypeAdv3=true|
|_username|'''[[Component:TextField|TextField]]'''|TypeAdv3=true| The field for entering the user's username.
|_email|'''[[Component:TextField|TextField]]'''|TypeAdv4=true|
|_email|'''[[Component:TextField|TextField]]'''|TypeAdv4=true| The field for entering the user's email address.
|_emailRepeat|'''[[Component:TextField|TextField]]'''|TypeAdv5=true|
|_emailRepeat|'''[[Component:TextField|TextField]]'''|TypeAdv5=true| The field to confirm the user's email address.
|_password|'''[[Component:TextField|TextField]]'''|TypeAdv6=true|
|_password|'''[[Component:TextField|TextField]]'''|TypeAdv6=true| The field for entering the user's password.
|_passwordRepeat|'''[[Component:TextField|TextField]]'''|TypeAdv7=true|
|_passwordRepeat|'''[[Component:TextField|TextField]]'''|TypeAdv7=true| The field for entering the user's password again for confirmation.
|_recoveryCode|'''[[Component:TextField|TextField]]'''|TypeAdv8=true|
|_recoveryCode|'''[[Component:TextField|TextField]]'''|TypeAdv8=true| The field to get a recovery code from in case of account loss.
|_birthMonth|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv9=true|
|_birthMonth|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv9=true| The field to enter the user's legal birth month MM.
|_birthDay|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv10=true|
|_birthDay|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv10=true| The field to enter the user's legal birth day DD.
|_birthYear|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv11=true|
|_birthYear|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv11=true| The field to enter the user's legal birth year YYYY.
|_rememberLogin|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv12=true|
|_rememberLogin|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv12=true| Whether to keep an encrypted token on disk using modern security protocols so the user can stay remembered for 30 days since last login, token refreshing every login.
|_resetUserId|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv13=true|
|_resetUserId|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv13=true| Whether to reset the user ID if they are migrating an account from older platforms.
|_policies|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv14=true|
|_policies|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv14=true| Whether the player accepts the EULA.
|_registerButton|'''[[Component:Button|Button]]'''|TypeAdv15=true|
|_registerButton|'''[[Component:Button|Button]]'''|TypeAdv15=true| The button for registering.
|_loginEmail|String|
|_loginEmail|String| The email used to log in.
}}
 
== Sync Delegates ==
{{Table ComponentTriggers
|OnPolicesClick:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the polices button is touched.
|DoLogin:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the login button is touched.
|DoLoginSaml2:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the login via saml2 button is touched.
|DoLoginSaml2:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:String|String]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:String|String]]>|true| Called when the login via saml2 button is touched.
|DoRegister:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the register button is touched.
|DoRegisterReserved:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the register reserve claim button is touched.
|RequestRecoveryCode:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the request recovery code button is touched.
|DoResetPassword:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the reset password button is touched.
|OnCancelRegister:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the cancel register button is touched.
|OpenLogin:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open login button is touched.
|OpenRegister:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open register button is touched.
|OpenLostPassword:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open lost password button is touched.
|OnOpenMigration:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open migration button is touched.
|OnDeclineMigration:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the decline migration button is touched.
}}
}}


== Behavior ==
== Usage ==
Not used directly by the user. Used in the dash.


== Examples ==
== Examples ==
used in dash login.


== See Also ==
== See Also ==
Line 34: Line 55:
[[Category:Components:Uncategorized{{#translation:}}|Login Dialog]]
[[Category:Components:Uncategorized{{#translation:}}|Login Dialog]]
[[Category:Components{{#translation:}}|Login Dialog]]
[[Category:Components{{#translation:}}|Login Dialog]]
[[Category:ComponentStubs]]

Latest revision as of 20:01, 25 June 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:LoginDialogComponent.png
Login Dialog component as seen in the Scene Inspector

The LoginDialog component is used in internal systems and may be replaced at any time. It is used to handle the logging in for users and the UI for such interactions.

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.
RegisterOnly Bool Whether user should just be registered and not log in afterwards.
_interactionEnabled Bool Whether interacting with this component is enabled.
_swapRegion SlideSwapRegion Handles the slide animation as this dialogue changes pages.
_username TextField The field for entering the user's username.
_email TextField The field for entering the user's email address.
_emailRepeat TextField The field to confirm the user's email address.
_password TextField The field for entering the user's password.
_passwordRepeat TextField The field for entering the user's password again for confirmation.
_recoveryCode TextField The field to get a recovery code from in case of account loss.
_birthMonth IntTextEditorParser The field to enter the user's legal birth month MM.
_birthDay IntTextEditorParser The field to enter the user's legal birth day DD.
_birthYear IntTextEditorParser The field to enter the user's legal birth year YYYY.
_rememberLogin Checkbox Whether to keep an encrypted token on disk using modern security protocols so the user can stay remembered for 30 days since last login, token refreshing every login.
_resetUserId Checkbox Whether to reset the user ID if they are migrating an account from older platforms.
_policies Checkbox Whether the player accepts the EULA.
_registerButton Button The button for registering.
_loginEmail String The email used to log in.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnPolicesClick:ButtonEventHandler ButtonEventHandler Called when the polices button is touched.
DoLogin:ButtonEventHandler ButtonEventHandler Called when the login button is touched.
DoLoginSaml2:ButtonEventHandler ButtonEventHandler Called when the login via saml2 button is touched.
DoLoginSaml2:ButtonEventHandler`1<String> ButtonEventHandler`1<String> Called when the login via saml2 button is touched.
DoRegister:ButtonEventHandler ButtonEventHandler Called when the register button is touched.
DoRegisterReserved:ButtonEventHandler ButtonEventHandler Called when the register reserve claim button is touched.
RequestRecoveryCode:ButtonEventHandler ButtonEventHandler Called when the request recovery code button is touched.
DoResetPassword:ButtonEventHandler ButtonEventHandler Called when the reset password button is touched.
OnCancelRegister:ButtonEventHandler ButtonEventHandler Called when the cancel register button is touched.
OpenLogin:ButtonEventHandler ButtonEventHandler Called when the open login button is touched.
OpenRegister:ButtonEventHandler ButtonEventHandler Called when the open register button is touched.
OpenLostPassword:ButtonEventHandler ButtonEventHandler Called when the open lost password button is touched.
OnOpenMigration:ButtonEventHandler ButtonEventHandler Called when the open migration button is touched.
OnDeclineMigration:ButtonEventHandler ButtonEventHandler Called when the decline migration button is touched.

Usage

Not used directly by the user. Used in the dash.

Examples

used in dash login.

See Also