I am trying to create an Change password/reset password functionality in the application so that user can change his password without reaching to the admin. I think i am unable to find the appropriate viewmodel object to change the password. Any one , Please find my partial view i have created and suggest me the right process to add the functionality to the site.
@{
var resetPasswordModel = Members.GetCurrentMemberProfileModel();
Html.EnableClientValidation();
Html.EnableUnobtrusiveJavaScript();
Html.RequiresJs("/umbracoclient/ui/jquery.js");
Html.RequiresJs("/umbracoclient/Application/JQuery/jquery.validate.min.js");
Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js");
var success = TempData["ProfileUpdateSuccess"] != null;
}
@Html.RenderJsHere()
@if (Members.IsLoggedIn() && resetPasswordModel != null)
{
if (success)
{
@* This message will show if RedirectOnSucces is set to false (default) *@
Reset user password in Umbraco
I am trying to create an Change password/reset password functionality in the application so that user can change his password without reaching to the admin. I think i am unable to find the appropriate viewmodel object to change the password. Any one , Please find my partial view i have created and suggest me the right process to add the functionality to the site.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using System.Web.Mvc.Html @using ClientDependency.Core.Mvc @using Umbraco.Web @using Umbraco.Web.Models @using Umbraco.Web.Controllers
@{ var resetPasswordModel = Members.GetCurrentMemberProfileModel(); Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); Html.RequiresJs("/umbracoclient/ui/jquery.js"); Html.RequiresJs("/umbracoclient/Application/JQuery/jquery.validate.min.js"); Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js"); var success = TempData["ProfileUpdateSuccess"] != null;
} @Html.RenderJsHere() @if (Members.IsLoggedIn() && resetPasswordModel != null) {
if (success) { @* This message will show if RedirectOnSucces is set to false (default) *@
Profile updated
} using (Html.BeginUmbracoFormis working on a reply...