mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 19:58:28 +02:00
Add tab for user actions. First action is a password change
This commit is contained in:
@@ -74,6 +74,43 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/changePassword": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"account"
|
||||
],
|
||||
"operationId": "changePassword",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/changePasswordRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "changed password"
|
||||
},
|
||||
"400": {
|
||||
"description": "password not changed"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"422": {
|
||||
"description": "password validation failure",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configuration": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -1068,6 +1105,20 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"changePasswordRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"newPassword": {
|
||||
"type": "string"
|
||||
},
|
||||
"oldPassword": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1697,6 +1748,43 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/changePassword": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"account"
|
||||
],
|
||||
"operationId": "changePassword",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/changePasswordRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "changed password"
|
||||
},
|
||||
"400": {
|
||||
"description": "password not changed"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"422": {
|
||||
"description": "password validation failure",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configuration": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -2691,6 +2779,20 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"changePasswordRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"newPassword": {
|
||||
"type": "string"
|
||||
},
|
||||
"oldPassword": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user