Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
I'm trying to log users in through a web service. This code logs them in for everything except IE 8! Any ideas on what I'm missing?
//create the status object
DotNetNuke.Security.Membership.UserLoginStatus status = new DotNetNuke.Security.Membership.UserLoginStatus();
//set it to fail
status = UserLoginStatus.LOGIN_FAILURE;
//see if they are a valid user
var obj = UserController.ValidateUser(0, username, password, "DNN", PortalSettings.PortalName, hostIp, ref status);
if (status == UserLoginStatus.LOGIN_SUCCESS || status == UserLoginStatus.LOGIN_SUPERUSER)
{
//if they are, log them in and return true
UserController.UserLogin(0, obj, PortalSettings.PortalName, hostIp, false);
DotNetNuke.Services.Authentication.UserAuthenticatedEventArgs eventArgs = new DotNetNuke.Services.Authentication.UserAuthenticatedEventArgs(obj, username, status, "DNN");
eventArgs.Authenticated = true;
System.Web.Security.FormsAuthentication.SetAuthCookie(username, true);
}