Copied to clipboard

Flag this post as spam?

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

  • Jon Herrell 13 posts 67 karma points
    Jun 01, 2017 @ 19:06
    Jon Herrell

    In Umbraco 7.6.x, when I try to use MemberService.SavePassword, I get the message "This provider does not support manually changing the password." I have not customized the provider in any way, and this works fine on 7.5.x.

    I'm sure something has changed with the membership provider, but I don't know the new way to create Umbraco users using the API and assign them a password.

    Note that these are NOT members, but Umbraco back-office users.

  • Damiaan 442 posts 1301 karma points MVP 6x c-trib
    Jun 01, 2017 @ 19:54

    I am not following. The MemberService is for members, and the UserService is for managing users.

    You are trying to change the password of a User with the MemberService?

  • Jon Herrell 13 posts 67 karma points
    Jun 01, 2017 @ 20:12
    Jon Herrell

    I'm sorry, I stated it incorrectly.

    I am using the UserService. Here is my code, with some parts removed for security:

                IUserService uSvc = appContext.Services.UserService;
                var allTypes = uSvc.GetAllUserTypes();
                IUserType adminType = allTypes.Where(t => t.Alias == "admin").FirstOrDefault();
                string[] allSections = { "content", "developer", "media", "member", "settings", "users" };
                aUser = uSvc.CreateUserWithIdentity("myUserId", "[email protected]", adminType);
                aUser.Name = "My user";
                uSvc.SavePassword(aUser, "some password");
                aUser.Language = "en-US";
                foreach (string aSection in allSections)
  • Chris Morley 12 posts 103 karma points
    Jun 04, 2017 @ 15:14
    Chris Morley

    Hey, I am having a similar issue with a newly installed Version of Umbraco version 7.6.3 assembly: 1.0.6361.21154. Although mine is with members.

    //convert model to Member
            var newUser = Services.MemberService.CreateMember(model.Email, model.Email, model.Email, "User");
            newUser.SetValue("inGameName", model.Username);
            memberService.SavePassword(newUser, model.Password);

    I've tried saving the password before save the member or after and couldn't find any information about whats wrong

  • Garðar Þorsteinsson 113 posts 534 karma points
    Jun 04, 2017 @ 19:59
    Gar├░ar ├×orsteinsson


    There is a new setting in web.config in version 7.6.

    Look for UmbracoMembershipProvider in web.config and allowManuallyChangingPassword should be set to true.

Please Sign in or register to post replies

Write your reply to: