Copied to clipboard

Flag this post as spam?

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


  • IceCoder1991 1 post 22 karma points
    Feb 13, 2020 @ 09:47
    IceCoder1991
    1

    How do we change a member password thru the API

    Is there anyone that knows how we could change a member password from the API?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 13, 2020 @ 23:29
    Alex Skrypnyk
    1

    Hi IceCoder

    What did you mean by API? Do you want to call some api to change the password?

    You can use MemberService to change member passwords.

    var memberService = Services.MemberService;
            var member = memberService.GetById(AppHelper.GetCurrentUserId());
            memberService.SavePassword(member, "password");
    

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft