Developer forum

Forum » Dynamicweb 10 » Forgot Passwor via api

Forgot Passwor via api

Jason
Reply

I am using 

curl -X 'POST' \
  'https://datupg-2.dynamicwebapac.com/dwapi/users/password/recover/request' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "emailfromthesystem@dynamicwebapac.com",
  "recoveryLink": "https://datupg-2.dynamicwebapac.com",
  "shopId": "SHOP1"
}'

But api responses  "Failed to create recovery URL: Host is not authorized" 400.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

You need to add the hostname to settings:

Votes for this answer: 1
 
Jason Htin Lin Aung
Reply

It works now and thank you

 

You must be logged in to post in the forum