Plumtree PEIs  
 

ILoginActions.OnBeforeLogin Method 

This functions allows for some functionality to occur before the user has logged in to the Portal.

WARNING: The user name in argument (_strUserName) will be empty if this is an auto-login. It will have a valid value in all other cases (through the Login Page, SSO Login, Guest Login).

Redirect OnBeforeLogin(
   ApplicationData _appData,
   string _strUserName
);

Parameters

_appData
- This parameter provides access to some of the application data that would normally be available through the current Activity Space
_strUserName
- This is the name of the user that is about to log in. This is blank if this is an auto-login. It will be "Guest" if it is the guest user (This value will always be the same, even if you rename the guest user).

Return Value

Redirect - Location that the User will be redirected after the functionality has completed. This redirect will be ignored if we are attempting to login the guest user and it is an internal redirect (These kinds of redirects should be done from OnAfterLogin since you can't access the portal if you're not even logged in as Guest).

See Also

ILoginActions Interface | com.plumtree.uiinfrastructure.pei Namespace