Change password reset flow, add token exchange step

This commit is contained in:
Denis Arh
2019-04-09 22:35:39 +02:00
parent 4c4445d2a2
commit 3f83a33622
7 changed files with 168 additions and 18 deletions
+18 -2
View File
@@ -93,7 +93,7 @@
{
"name": "requestPasswordReset",
"method": "POST",
"title": "Request password reset token",
"title": "Request password reset token (via email)",
"path": "/request-password-reset",
"parameters": {
"post": [
@@ -106,10 +106,26 @@
]
}
},
{
"name": "exchangePasswordResetToken",
"method": "POST",
"title": "Exchange password reset token for new token and user info",
"path": "/exchange-password-reset-token",
"parameters": {
"post": [
{
"name": "token",
"type": "string",
"required": true,
"title": "Token"
}
]
}
},
{
"name": "resetPassword",
"method": "POST",
"title": "Reset password with token",
"title": "Reset password with exchanged password reset token",
"path": "/reset-password",
"parameters": {
"post": [
+18 -2
View File
@@ -72,7 +72,7 @@
{
"Name": "requestPasswordReset",
"Method": "POST",
"Title": "Request password reset token",
"Title": "Request password reset token (via email)",
"Path": "/request-password-reset",
"Parameters": {
"post": [
@@ -85,10 +85,26 @@
]
}
},
{
"Name": "exchangePasswordResetToken",
"Method": "POST",
"Title": "Exchange password reset token for new token and user info",
"Path": "/exchange-password-reset-token",
"Parameters": {
"post": [
{
"name": "token",
"required": true,
"title": "Token",
"type": "string"
}
]
}
},
{
"Name": "resetPassword",
"Method": "POST",
"Title": "Reset password with token",
"Title": "Reset password with exchanged password reset token",
"Path": "/reset-password",
"Parameters": {
"post": [