Hi,
I am trying to integrate CuteChat into an ASP.NET website, which uses a custom Authentication mechanism. I have created a class in global.asax and override some of the methods.
Then in a page I have added this:
- if (CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator)
- {
-
- }
but the only method which is run in global.asax is this:
- public override AppChatIdentity GetLogonIdentity()
- {
- if (UserInfo.Current == null)
- {
- return null;
- }
- return new AppChatIdentity(UserInfo.Current.UserName, false, UserInfo.Current.UserAccountID.ToString(), HttpContext.Current.Request.UserHostAddress);
- }
which makes the if statement to evaluate to false and hence the URL does not show up.
Can anyone help me with this one?
Thanks.
P.S: I am using the version of CuteChat which I downloaded from this web site.