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 ); ??
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 ); ??
I'm with Kent here. I've found no documentation regarding how to actually use this package.
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
is working on a reply...