afterLogin

Description

Fires after the callback that occurs when the user tries to login to the application has completed.

Arguments

eobject

An object with the following parameters:

loginSucceededboolean

Indicates whether or not the user successfully logged into the application.

errorTextstring

Contains an error message if an error occurred when the user tried to login (such as entering an incorrect password).

 Accessing Data Values set in the onLogin Server-side Event

Data values set in the onLogin server-side event's e.eventDataObject can be accessed in the afterLogin event. For example:

if (e.eventDataObject && e.eventDataObject.userName) {
    alert("Welcome: " + e.eventDataObject.userName);
}