Copied to clipboard

Flag this post as spam?

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


  • Saief 7 posts 99 karma points
    Nov 18, 2016 @ 09:58
    Saief
    0

    Bulding a Login system in Umbraco & MVC

    Hi

    I'm expanding my companies website with a new login system feature. Our users/customers needs to be able to: Create, login, view data on a secret page for signed in users, etc.

    I see that umbraco already has a login system built in. If I create a new partial view I can see there are different partials I can use under the Snippet dropdown.

    My issue now is, how can I expand/edit the Model and Controllers which are associated with loginModel, registerModel etc.? (they're metadata classes)

    I would like to add other properties to the Model which can be information that is related to the user. Is this even possible?

    The umbraco cmsMember table, is even possible to add more columns to the table?

    I need some advice on what options I have and if there are is a tutorial the describes a decent login system I would love to see that.

    MVC and Umbraco is very new for me and I'm doing my best to get into it :)

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Nov 18, 2016 @ 10:21
    Michaël Vanbrabandt
    100

    Hi Saief,

    have a look at the videos on Umbraco Tv ( you need to have a license to view it ):

    http://umbraco.tv/videos/umbraco-v7/developer/fundamentals/member-api/introduction/

    Also take a look at the Surface Controllers:

    https://our.umbraco.org/documentation/reference/routing/surface-controllers

    Basically you just create a new model called LoginModel and a Surface Controller called LoginSurfaceController.

    In your controller you create action methods to display the login view, do the login and logout.

    Hope this helps!

    /Michaël

  • Saief 7 posts 99 karma points
    Nov 18, 2016 @ 10:38
    Saief
    1

    Hi Michael,

    I will look into this right away, thanks!

  • Jon R. Humphrey 164 posts 455 karma points c-trib
    Nov 18, 2016 @ 10:23
    Jon R. Humphrey
    0

    Saief,

    I'm not 100% sure this is what you need but Lee Kelleher has created a Bulk User Admin package that might get you closer to what you're looking for?

    Hope this helps!

    J

  • Saief 7 posts 99 karma points
    Nov 18, 2016 @ 10:37
    Saief
    0

    Hi Jon

    This is about users. I want to create a login membership system in the current umbraco website I'm working on.

    Umbraco has it's own built in membership provider where the code is added automatically and easily. My issue is though that I want to be able to add more properties than just Email, fullname and password.

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Nov 18, 2016 @ 10:43
    Michaël Vanbrabandt
    0

    Check out my blog post where I mention adding other properties to the members:

    http://www.ucodebase.be/blog/import-members-into-umbraco-from-a-csv-file-using-the-memberservice/

    /Michaël

  • Jon R. Humphrey 164 posts 455 karma points c-trib
    Nov 18, 2016 @ 10:46
    Jon R. Humphrey
    0

    No worries Saief, apologies if it wasn't what you needed! :-)

    J

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies