Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dimitris Chrysomallis 23 posts 137 karma points
    Jun 07, 2018 @ 12:36
    Dimitris Chrysomallis
    0

    What is a RegisterModel and how to actually write a complete member registration process?

    The UmbracoTv video on Creating a Member uses a custom RegisterModel class in the Models folder. It then goes on to imply that the RegisterModel passed to the RegisterController is an instance of that class. However, I have noticed that the RegisterModel passed to the controller is actually a different type that exists in the Umbraco.Web.Models namespace; It also seems to be the latter that is instantiated when calling:

    Members.CreateRegistrationModel("MyCustomMemberType");
    

    I also have to notice that the View partial in the video is quite different from the partial snippet created by Umbraco. What is the view supposed to inherit from? The partial in the video uses @model = ..., while the latter calls CreateRegistrationModel. I am utterly confused :-(.

    In all, I would appreciate if anyone could assist with a blueprint to properly implement membership with custom properties in Umbraco 7.9.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft