Login-Logout

Description

Once you have configured your UX component to turn on integrated login functionality, you will also need to add buttons to the UX component to login and logout. The event Javascript code that will need for these buttons is shown below:

Login 

{dialog.object}.login();

Logout 

{dialog.object}.logout();
You can select the 'Login-Logout' item in the 'Defined Controls section of the toolbox to automatically add login/logout buttons and also the placeholder for login errors.

Server-Side Events 

When the user clicks the 'login' button to login, an Ajax callback is made to authenticate the user. There are several  server-side events for login and logout: beforeLogin, onLogin, and onLogout. These are accesible in the Server-Side Events page in the UX Component Builder.

Client-Side Events 

When the user logs in or logs out there are several client-side events that fire, as shown in the image below.