• Resolved ross1213

    (@ross1213)


    Hi Nicu

    Thanks for contributing the plugin – very helpful.

    I’ve had a lot of success, but when I’ve tried to register a user using the ‘user_login’ url parameter from the docs it seems that the code still uses email regardless (when I check in wordpress the username is the email address). Can you confirm? Sample URL below.

    `rest_route=/simple-jwt-login/v1/users&user_login=myuser&[email protected]&first_name=firstname&last_name=Tlastnamean&show_admin_bar_front=false&AUTH_KEY=blah

    Also, on the jwt login settings, does “Login by wordpress id” actually mean the internal wordpress user integer(not sure how I would get this? I dont see it returned after creation?) or the wordpress ‘user_login’ specified above.

    Thanks for your help.

    Ross

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    Thank you for reporting this problem.
    I will fix this issue with user_login and let you when you can test it.

    You are right about “Login by WordPress id”. You can get the user ID in the response for “Create user” ( “id” ). Here is a sample response:


    {
    “message”: “User was successfully created.”,
    “id”: 123
    }

    I will come back with updates.

    Thread Starter ross1213

    (@ross1213)

    Thanks for the fast response Nicu. Sorry, I just found I was checking the wrong variable for the post response, you are quite correct on the ID.

    Best Wishes

    Ross

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    The issue has been fixed.

    I’ve just released version 2.0.0. A new UI design and new features are available. Please check the Changelog.

    PS: Please don’t forget to rate this plugin.

    Best Regards!

    • This reply was modified 5 years, 11 months ago by Nicu Micle.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Register and log users in using user_login parameter’ is closed to new replies.