nicumicle / simple-jwt-login

This plugin allows you to log in, register, authenticate, delete and change the user password to a WordPress website using a JWT.
http://wordpress.org/plugins/simple-jwt-login/
GNU General Public License v3.0
83 stars 23 forks source link

bug: Invalid email while register #95

Closed techforeman closed 8 months ago

techforeman commented 11 months ago

Bug Report

Plugin Version

3.5.3

PHP Version

8.1

WordPress Version

6.4.2

Bug description

It is not possible to create / register email when with '+' character. Adding such email manually on default user list it is possible. name.surname+167@gmail.com

/users&email=name.surname+167@gmail.com&user_login=599&first_name=test&last_name=test&password=NEW_USER_PASSWORD&AUTH_KEY=2321398

nicumicle commented 11 months ago

Hi @techforeman ,

Thanks for reporting this bug. Can you please try to send the parameters in the request body? Here is an example: https://simplejwtlogin.com/docs/register-user/#examples

If you send the parameters as query params, the + will be translated to " "(space).

Let me know if this works for you or if you need help.

Best regards, Nicu.