initial pass for forgot password

This commit is contained in:
Cam Otts
2023-01-18 13:05:10 -06:00
parent 10e6adef87
commit a07c4a519c
37 changed files with 2199 additions and 3 deletions

View File

@ -222,6 +222,31 @@ func init() {
}
}
},
"/forgotPassword": {
"post": {
"tags": [
"account"
],
"operationId": "forgotPassword",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/forgotPasswordRequest"
}
}
],
"responses": {
"201": {
"description": "forgot password request created"
},
"500": {
"description": "internal server error"
}
}
}
},
"/frontend": {
"post": {
"security": [
@ -553,6 +578,34 @@ func init() {
}
}
},
"/resetPassword": {
"post": {
"tags": [
"account"
],
"operationId": "resetPassword",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/resetPasswordRequest"
}
}
],
"responses": {
"200": {
"description": "password reset"
},
"404": {
"description": "request not found"
},
"500": {
"description": "internal server error"
}
}
}
},
"/share": {
"post": {
"security": [
@ -895,6 +948,14 @@ func init() {
"errorMessage": {
"type": "string"
},
"forgotPasswordRequest": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"inviteRequest": {
"type": "object",
"properties": {
@ -999,6 +1060,17 @@ func init() {
}
}
},
"resetPasswordRequest": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"share": {
"type": "object",
"properties": {
@ -1393,6 +1465,31 @@ func init() {
}
}
},
"/forgotPassword": {
"post": {
"tags": [
"account"
],
"operationId": "forgotPassword",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/forgotPasswordRequest"
}
}
],
"responses": {
"201": {
"description": "forgot password request created"
},
"500": {
"description": "internal server error"
}
}
}
},
"/frontend": {
"post": {
"security": [
@ -1724,6 +1821,34 @@ func init() {
}
}
},
"/resetPassword": {
"post": {
"tags": [
"account"
],
"operationId": "resetPassword",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/resetPasswordRequest"
}
}
],
"responses": {
"200": {
"description": "password reset"
},
"404": {
"description": "request not found"
},
"500": {
"description": "internal server error"
}
}
}
},
"/share": {
"post": {
"security": [
@ -2066,6 +2191,14 @@ func init() {
"errorMessage": {
"type": "string"
},
"forgotPasswordRequest": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"inviteRequest": {
"type": "object",
"properties": {
@ -2170,6 +2303,17 @@ func init() {
}
}
},
"resetPasswordRequest": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"share": {
"type": "object",
"properties": {