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 21 karma points
    Feb 13, 2020 @ 09:47
    IceCoder1991
    0

    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 5772 posts 21984 karma points MVP 4x admin c-trib
    Feb 13, 2020 @ 23:29
    Alex Skrypnyk
    0

    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