Integration/Tutorials/Customizing-Izenda-Settings.md
... ...
@@ -47,7 +47,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.FileSystemAdHocConfig
47 47
public override void PostLogin() {
48 48
// Call Izenda.AdHoc.AdHocSettngs.AdHocConfig.PostLogin() from your login
49 49
// page after authentication is successful
50
- AdHocSettings.CurrentUserName = (string)HttpContext.Current.Session[""UserName"]; //Assumes the authenticated username is stored in a session variable
50
+ AdHocSettings.CurrentUserName = (string)HttpContext.Current.Session["UserName"]; //Assumes the authenticated username is stored in a session variable
51 51
AdHocSettings.CurrentUserIsAdmin = (bool)HttpContext.Current.Session["IsAdmin"]; //Assumes the authenticated user's admin status is stored in a session variable
52 52
AdHocSettings.ShowSettingsButton = AdHocSettings.CurrentUserIsAdmin;
53 53
AdHocSettings.VisibleDataSources = GetUserDataSources();