Skip to content

Commit

Permalink
[DOCS] Add forgot password endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacr1ma committed Mar 9, 2020
1 parent 9c66290 commit 861f4ea
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Documentation/Tutorials/Rest/Index.rst
Expand Up @@ -158,3 +158,33 @@ Magic link request
{
"redirect": "http:example.com/after_magic_link/sent"
}
Forgot password request
=======================

.. code-block:: console
curl --location --request POST 'http://login.ddev.site/api/login/reset-password-link' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{"email":"dummy@example.com"}'
Error response

.. code-block:: json
{
"errors": {
"email": [
"This email address is not connected to any user in our system."
]
}
}
Success response

.. code-block:: json
{
"redirect": "http:example.com/after_forgot_password/sent"
}

0 comments on commit 861f4ea

Please sign in to comment.