Show / Hide Table of Contents
    View Source

    Class RegisterModel

    Inheritance
    System.Object
    PostRedirectModel
    Namespace:System.Dynamic.ExpandoObject
    Assembly:Umbraco.Web.dll
    Syntax
    public class RegisterModel : PostRedirectModel

    Properties

    View Source

    CreatePersistentLoginCookie

    Default is true to create a persistent cookie if LoginOnSuccess is true

    Declaration
    public bool CreatePersistentLoginCookie { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Email

    Declaration
    [Required]
    [RegularExpression("[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?", ErrorMessage = "Please enter a valid e-mail address")]
    public string Email { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    LoginOnSuccess

    Specifies if the member should be logged in if they are successfully created

    Declaration
    public bool LoginOnSuccess { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    MemberProperties

    Returns the member properties

    Declaration
    public List<UmbracoProperty> MemberProperties { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<UmbracoProperty>
    View Source

    MemberTypeAlias

    The member type alias to use to register the member

    Declaration
    [Editable(false)]
    public string MemberTypeAlias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    The members real name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Password

    The members password

    Declaration
    [Required]
    public string Password { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Username

    The username of the model, if UsernameIsEmail is true then this is ignored.

    Declaration
    public string Username { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    UsernameIsEmail

    Flag to determine if the username should be the email address, if true then the Username property is ignored

    Declaration
    public bool UsernameIsEmail { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    CreateModel()

    Creates a new empty RegisterModel.

    Declaration
    public static RegisterModel CreateModel()
    Returns
    Type Description
    RegisterModel
    • Improve this Doc
    • View Source
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX