• Hi, Team.

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

    URL: https://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.

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

    (@nicu_m)

    Hello @refiny,

    I believe you get this error from apache because the request method is PUT.

    Try to add this in your .htaccess file:

    
    <Limit GET POST PUT DELETE OPTIONS>
      Allow from all
    </Limit>
    

    Let me know if this fixes your issue.

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)
  • The topic ‘Reset Password get ‘405 Not Allowed’ Error’ is closed to new replies.