• Resolved pixeledmedia

    (@pixeledmedia)


    Hi there,

    How do I create a password or update a user’s password through update_user_meta?

    I want to allow users to enter their password while signing up; or to allow a user to udpate their own password, just like WordPress.

    Which meta key do I use with update_user_meta? I tried ‘password’, ‘user_pass’ & ‘user_password’, but all that it does is add a new entry(row) to the user’s meta and doesn’t update their password.

    Thanks!

    https://wordpress.org/plugins/json-api-user/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    Hi,

    try retrieve_password
    It needs user_login var.

    http://localhost/api/user/retrieve_password/?user_login=john

    On user registration is it possible to set the password?

    Like this:

    localhost/api/user/register/?username=steve@apple.com&email=steve@apple.com&nonce=01bb83d8b9&display_name=Steve%20Jobs&user_pass=123456

    When I run the above URL to register a new user the password is not being used and it’s using an auto generated password. Any help would be much appreciated.

    Plugin Author Ali Qureshi

    (@parorrey)

    yes. just provide the password like this &password=8nfnfhjcnsjnw

    This is also mentioned in the ‘Other Notes’ tab on plugin page and all other optional params.

    Adding &password=8nfnfhjcnsjnw to the end does not create the password. Have you tried and had it work successfully?

    Ok, figure it out. I had a conflicting plugin that was not enabling the use of user generated passwords. Thanks Ali, awesome plugin! Are you available for custom work?

    Plugin Author Ali Qureshi

    (@parorrey)

    Thanks. yes, I’m available.

    And you’re welcome.

    Thread Starter pixeledmedia

    (@pixeledmedia)

    Thanks, it works, I was adding the password to the wrong method

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘User Password’ is closed to new replies.