• When I submit a url like this:

    /?rest_route=/api/v1/login/auth&email=rick@james.com&password=rickJamesB#$%^&

    What gets submitted looks like this:

    /?rest_route=/api/v1/login/auth&email=rick@james.com&password=rickJamesB#

    While a hash / pound sign is allowed in a password, it breaks the URL. It doesn’t look like the plugin allows for any escaping of the arguments. Is there a way to do that that I am missing?

Viewing 1 replies (of 1 total)
  • Plugin Author nicu_m

    (@nicu_m)

    Hello @jcow,

    You can send the parameters in the request body as a JSON. This will fix your issue.

    Here is an example:

    Register user:

    
     curl -d '{"email":"test123@test123.com","password":"123!@#$%"}' -X POST http://localhost/?rest_route=/simple-jwt-login/v1/users
    

    Authenticate:

    
    curl -d '{"email":"test123@test123.com","password":"123!@#$%"}' -X POST http://localhost/?rest_route=/simple-jwt-login/v1/auth 
    

    PS: Please make sure you use the latest plugin version. The support for JSON in body has been added in 3.0.0.

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)
  • The topic ‘Escape URL Characters for authentication’ is closed to new replies.