#616 added modal on icon click (#747)

* Added refresh tenant functionality

add icon to Users page to change password

commit work to date to github for ongoing use

add modal with fields for current and new password on icon click

missing swagger files

remove unneeded files

move changeUserPassword to admin_api, remove field for current password,
include selected user

Please enter the commit message for your changes. Lines starting

added missing js files

asset and function signature

formatting changes

* fixed lint

* removed Current Password field, returned Groups label, added
selectedUser to modal text

* disabled save button if newPasssword and reNewPassword don't match, removed commented out code

* Added refresh tenant functionality

add icon to Users page to change password

commit work to date to github for ongoing use

add modal with fields for current and new password on icon click

missing swagger files

remove unneeded files

move changeUserPassword to admin_api, remove field for current password,
include selected user

Please enter the commit message for your changes. Lines starting

added missing js files

asset and function signature

formatting changes

* removed Current Password field, returned Groups label, added
selectedUser to modal text

* changed Swagger parameters to camel case

Co-authored-by: Jill <jill@minio.io>
This commit is contained in:
jinapurapu
2021-06-03 15:32:22 -07:00
committed by GitHub
parent f18360416b
commit a9e82eb909
18 changed files with 1163 additions and 31 deletions

View File

@@ -85,6 +85,36 @@ func init() {
}
}
},
"/account/change-user-password": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Change password of currently logged in user.",
"operationId": "ChangeUserPassword",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/changeUserPasswordRequest"
}
}
],
"responses": {
"201": {
"description": "Password successfully changed."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/admin/arns": {
"get": {
"tags": [
@@ -4432,6 +4462,21 @@ func init() {
}
}
},
"changeUserPasswordRequest": {
"type": "object",
"required": [
"selectedUser",
"newSecretKey"
],
"properties": {
"newSecretKey": {
"type": "string"
},
"selectedUser": {
"type": "string"
}
}
},
"configDescription": {
"type": "object",
"properties": {
@@ -7321,6 +7366,36 @@ func init() {
}
}
},
"/account/change-user-password": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Change password of currently logged in user.",
"operationId": "ChangeUserPassword",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/changeUserPasswordRequest"
}
}
],
"responses": {
"201": {
"description": "Password successfully changed."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/admin/arns": {
"get": {
"tags": [
@@ -12308,6 +12383,21 @@ func init() {
}
}
},
"changeUserPasswordRequest": {
"type": "object",
"required": [
"selectedUser",
"newSecretKey"
],
"properties": {
"newSecretKey": {
"type": "string"
},
"selectedUser": {
"type": "string"
}
}
},
"configDescription": {
"type": "object",
"properties": {