• Hello all,

    I’m new to wordpress development, and I need to rebuild a website with wordpress. No problem building standard pages (using Elementor).

    But the current site (developed in plain PHP) has a special page that allows a user to register himself to the website getting some data from an external URL getting two URL parameters (email and role), and asking for a password. This page also check for an existing user (checking user email) and allow to effectively register the password if his email doesn’t exist.

    How can I create a new user in wordpress using these two URL parameter?

    I would like to create a similar mechanism in wordpress using 3 form fields:
    – email (hidden field that gets populated from URL parameter; base64 encoded)
    – role (hidden field that gets populated from URL parameter; base64 encoded)
    – password: field that allow the user to set his password (or get a wordpress generated/suggested one)

    How can I do this in wordpress?

    Can someone point me in the right direction?

    Thanks in advance.

    Tony

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can add users through the REST API. The request does need to be properly authenticated. I recommend Application Passwords.

    As you’ll see from the linked docs, you create a user with a POST request, you wouldn’t use URL parameters. Authenticating through GET and URL parameters would be insecure.

Viewing 1 replies (of 1 total)
  • The topic ‘How to register new user using URL parameters?’ is closed to new replies.