Password reset
This commit is contained in:
@@ -13,8 +13,7 @@
|
||||
@using (Html.BeginUmbracoForm<UmbLoginController>("HandleLogin"))
|
||||
{
|
||||
@Html.EditorFor(m => loginModel.Username)
|
||||
@Html.EditorFor(m => loginModel.Password, "Password")
|
||||
|
||||
@Html.EditorFor(m => loginModel.Password, "PasswordWithForgotLink")
|
||||
@Html.ValidationSummary("loginModel", true)
|
||||
|
||||
<button class="btn btn-primary pull-right">Login</button>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@{
|
||||
Html.RenderAction("PasswordReset", "Membership");
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@{
|
||||
Html.RenderAction("PasswordResetRequest", "Membership");
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@using ClientDependency.Core.Mvc
|
||||
@using Umbraco.Web.Controllers
|
||||
<!-- https://24days.in/umbraco-cms/2015/membership-apis-investigation/ -->
|
||||
<!-- https://our.umbraco.com/forum/templates-partial-views-and-macros/93133-membership-provider-registration-form -->
|
||||
@{
|
||||
// https://24days.in/umbraco-cms/2015/membership-apis-investigation/
|
||||
// https://our.umbraco.com/forum/templates-partial-views-and-macros/93133-membership-provider-registration-form
|
||||
|
||||
var membershipHelper = new Umbraco.Web.Security.MembershipHelper(UmbracoContext.Current);
|
||||
var registerModel = membershipHelper.CreateRegistrationModel();
|
||||
|
||||
@@ -28,7 +29,7 @@
|
||||
}
|
||||
else if (user != null)
|
||||
{
|
||||
<p>No need to register - you are already logged withe email @user.Email</p>
|
||||
<p>No need to register - you are already logged with email @user.Email</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user