0

I am using the magento2 core password reset api in postman but it returns false

enter image description here

I don't know what's the reason the customer with provided email is registered. I have also installed the SMTP extension

2 Answers 2

1

Hello Syed I have use the api for the customer reset password its working fine. Would you please find the below details.

Url : <base_url>/rest/V1/customers/me/password
Method : PUT
Autorization : Current_customer_token
Request Body: {
  "currentPassword": "PTest@11",
  "newPassword": "PTest@12"
}
Response : true

enter image description here Hope this help you. Thanks

Hello @sayed above is change password

Your request is correct and i also found the false in the resonse and i have checked the log and we found the SMTP Issue in log so please review your log. Thanks

4
  • @sagar basically i want to use forget password api, the above api is for reset Jun 20 at 9:14
  • @SyedHassanZamir Sorry I have share the change password: Please check your log the error are in log. first up all clear you cache and then try. I think you email are not trigger so it will return false. Jun 20 at 9:49
  • yes it is giving error in sending email, Next Magento\Framework\Exception\MailException: Unable to send mail. Please try again later. in /var/www/html/m244/vendor/magento/module-email/Model/Transport.php:114 Jun 20 at 10:06
  • How to resolve it ? Jun 20 at 10:07
1

SMTP extension was having some compatability issue with magento 2.4.4, use it with magento 2.4.2 it is working fine

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.