• I’m trying to do a password reset with the code I receive via email. Using Postman I try to mimic a PUT request with the following link but what I do results with a 405 error request.

    https://wp-admin.app/?rest_route=/simple-jwt-login/v1/user/reset_password&email=paul@***********.nl&code=kHwkv1d0yBlp0J9TerYG&new_password=***********&AUTH_KEY=***********

    Can you tell me why this not working and what I do wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, bro, I’ve got the same 405 error response, did you got any solution on it?

    <html>
    
    <head>
    	<title>405 Not Allowed</title>
    </head>
    
    <body>
    	<center>
    		<h1>405 Not Allowed</h1>
    	</center>
    	<hr>
    	<center>nginx/1.20.1</center>
    </body>
    
    </html>
    • This reply was modified 3 years, 10 months ago by refiny.
    • This reply was modified 3 years, 10 months ago by refiny.

    When I try to reset password throw PostMan, it always got “405 Not Allowed” error, my request like below.

    URL: http://justap.vip/?rest_route=/simple-jwt-login/v1/user/reset_password
    Method: PUT
    Body:

    {
    "email": "[email protected]",
    "new_password": "111111",
    "JWT": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NjEwNDcwOTgsImV4cCI6MTY2MTA1MDY5OCwiZW1haWwiOiIwMTMxOTg1Mjc1MjBAY29pbmNyZWRpdC5uZXR3b3JrIiwiaWQiOjMsInNpdGUiOiJodHRwOlwvXC9qdXN0YXAudmlwIiwidXNlcm5hbWUiOiIwMTMxOTg1Mjc1MjAifQ.3-c7jBTPX2e6XZWem5pDAYMREhLwuAc0nzUn-4eotFU",
    "AUTH_CODE": "TEAM"
    }

    Result:

    <html>
    
    <head>
    	<title>405 Not Allowed</title>
    </head>
    
    <body>
    	<center>
    		<h1>405 Not Allowed</h1>
    	</center>
    	<hr>
    	<center>nginx</center>
    </body>
    
    </html>

    This is an new WordPress environment runing at Aliyun Simple Application Server, No matter those parametters put behind url or in the request body, the result is the same.

    • This reply was modified 3 years, 9 months ago by refiny.
    Thread Starter Paul IJmker

    (@paulijmker)

    Hey, this has been a long time for me and haven’t moved on. Unfortunately I don’t know the answer to this.

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    Sorry for my late reply.
    I believe that apache does not allow PUT by default on your server.

    Can you please try to add this in your .htaccess file:

    
    <Limit GET POST PUT DELETE OPTIONS>
      Allow from all
    </Limit>
    
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Password reset gives 405 error’ is closed to new replies.