Working on password recovery

This commit is contained in:
2021-07-28 23:02:04 +10:00
parent 72b3babfd8
commit 81da8ca422
9 changed files with 224 additions and 1 deletions
+24
View File
@@ -83,4 +83,28 @@ Content-Type: application/json
{
"password": "helloworld"
}
//DOCS: Send the link to recover a forgotten password
POST /auth/recover
Content-Type: application/json
{
"email": "kayneruse@gmail.com"
}
//DOCS: Redirect the link to recover a password to the front-end
GET /auth/reset?token=<token>
//Result
301 -> ${WEB_RESET_ADDRESS}?email=<email>&token=<token>
//DOCS: Resets a password for the given email, correct token is required
PATCH /auth/reset?email=<email>&token=<token>
{
"password": "password"
}
```