Merge pull request #524 from Odie20XX/patch-1
Update MembershipHelper.cs
This commit is contained in:
@@ -172,11 +172,14 @@ namespace Umbraco.Web.Security
|
||||
if (status != MembershipCreateStatus.Success) return null;
|
||||
}
|
||||
|
||||
//Set member online
|
||||
provider.GetUser(model.Username, true);
|
||||
|
||||
//Log them in
|
||||
FormsAuthentication.SetAuthCookie(membershipUser.UserName, model.CreatePersistentLoginCookie);
|
||||
if (logMemberIn)
|
||||
{
|
||||
//Set member online
|
||||
provider.GetUser(model.Username, true);
|
||||
|
||||
//Log them in
|
||||
FormsAuthentication.SetAuthCookie(membershipUser.UserName, model.CreatePersistentLoginCookie);
|
||||
}
|
||||
|
||||
return membershipUser;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user