Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
I think you have to set the asp.net auth cookie and possibly refresh the page for it to work. If you use the aspnet Login control at least the first part will be handled automatically.
Hi,
I am trying to login a valid user and then retrieve the users information, but gets null value according to the code below:
--------------------------------------------
IUser user;
SecurityHandler.Instance.AuthenticateUser(LoginUnameBox.Text, LoginPasswBox.Text, out user); //user is ok with correct data
user = CommunitySystem.CurrentContext.DefaultSecurity.CurrentUser; <----------- Current user is null.