PostLogin()
The PostLogin method allows you to call it from your login page using the line of
code:
*Izenda.AdHoc.AdHocSettngs.AdHocConfig.PostLogin();
This will enable you to run any user/role related code, before the global settings
are run from either the settings.aspx page or the ConfigureSettings() method.
// Call Izenda.AdHoc.AdHocSettngs.AdHocConfig.PostLogin() from your login
// page after authenitcation is successful
public override void PostLogin()
{
if (userName == joe)
{
AdHocSettings.CurrentUserName = userName;
AdHocSettings.CurrentUserIsAdmin = false;
AdHocSettings.ShowSettingsButton = false;
}
else
{
AdHocSettings.CurrentUserIsAdmin = true;
}
}//end method