Copied to clipboard

Flag this post as spam?

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


  • Richard 4 posts 75 karma points
    Jun 13, 2022 @ 19:50
    Richard
    1

    Member change password Umbraco 8

    Manually changing the password from the Members section in the backoffice does not seem to work. After entering the new password and clicking Save, I get a message saying: "Password cannot be changed without the old password", as seen below.

    Change password form example

    • I am using version 8.18.1.
    • I have set allowManuallyChangingPassword to true in the web.config.
    • This is happening with a brand new member type I created which has 0 custom properties.

    It seems very similar to this issue from V7 which was supposedly fixed.

    https://our.umbraco.com/forum/using-umbraco-and-getting-started/95846-umbraco-member-password-change-password-cannot-be-changed-without-the-old-password


    Looking deeper, it seems like getting the password property on line 192 here seems to be the problem.

    https://github.com/umbraco/Umbraco-CMS/blob/v8/8.18/src/Umbraco.Web.UI.Client/src/views/member/member.edit.controller.js

    I have it working with this change since contentEditingHelper.getAllProps() doesn't include the membershipProperties:

    var passwordProp = _.find($scope.content.membershipProperties, function (e) {
        return e.alias === '_umb_password';
    });
    

    Is this expected behavior? Do others have this working without the change I mentioned?

    Edit: I just noticed this exact code change is in the V8/dev branch, so it would seem this is indeed a bug. Leaving this up in case it helps anyone that comes across it.

    https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Web.UI.Client/src/views/member/member.edit.controller.js

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies