Moves the registration logic to the MembershipHelper, fixes up the views to keep the indexes so props save.

This commit is contained in:
Shannon
2014-01-28 21:42:30 +11:00
parent 1bfdd83ba7
commit cfd0973f00
7 changed files with 87 additions and 38 deletions

View File

@@ -28,6 +28,7 @@ namespace Umbraco.Web.Models
RedirectUrl = "/";
UsernameIsEmail = true;
MemberProperties = new List<UmbracoProperty>();
LoginOnSuccess = true;
if (doLookup && HttpContext.Current != null && ApplicationContext.Current != null)
{
@@ -67,5 +68,11 @@ namespace Umbraco.Web.Models
public string Username { get; set; }
public bool UsernameIsEmail { get; set; }
/// <summary>
/// Specifies if the member should be logged in if they are succesfully created
/// </summary>
public bool LoginOnSuccess { get; set; }
}
}