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.
|_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| Whether to reset the user ID if they are migrating an account from older platforms.
|_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.
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.
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.
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.