Copied to clipboard

Flag this post as spam?

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


  • Kent 30 posts 54 karma points
    Aug 19, 2013 @ 18:10
    Kent
    0

    Umbraco Standard Membership

    I'm trying to implement a login page in Umbraco 6 MVC. I've installed the Umbraco Standard Membership nuget package and I've got a semi-working login page, but I'm just not sure how I'm supposed to be using it. As in, what's the recommended way to structure the templates/views in order to get it fully working?

    The problem I'm having is that I can login, but if there is an error and I need to return the current view with a ModelState error I get JUST the login partial view, without the rest of the page (header, footer, nav, etc).

    Here is my current structure:

    AuthSurface/Login.cshtml contains the actual login control markup.

    MacroPartials/Login.cshtml just calls the action on the controller to render the above markup.

    The content of the page contains the MacroPartial.

    This works for the inital render only. How can I ensure that the entire page gets rendered if I do this in the HandleLogin action: return PartialView( "Login", loginModel ); ??

  • Jacob 41 posts 90 karma points
    Jan 27, 2014 @ 18:53
    Jacob
    0

    I'm with Kent here.  I've found no documentation regarding how to actually use this package.

  • Zakhar 171 posts 397 karma points
    Jan 28, 2014 @ 11:58
    Zakhar
    0

    Hey guys, I had another problem when I tried to implement login/register functionality, but solved that eventually, you can see a working example in this post: http://our.umbraco.org/forum/using/ui-questions/47763-Model-problem-with-MVC-form-in-Child-action

    I didn't install any additional packages though, just used the default membership provider of v6.1.6

Please Sign in or register to post replies

Write your reply to:

Draft