Copied to clipboard

Flag this post as spam?

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


  • Anil Kumar Anagam 1 post 71 karma points
    Jan 12, 2017 @ 17:58
    Anil Kumar Anagam
    0

    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.BeginUmbracoForm
Please Sign in or register to post replies

Write your reply to:

Draft