mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
This reverts commit 2c032f1739
.
This commit is contained in:
parent
2c032f1739
commit
ecce501cf3
70 changed files with 45 additions and 418 deletions
|
@ -24,7 +24,6 @@ type userUpdatePayload struct {
|
|||
Username string `validate:"required" example:"bob"`
|
||||
Password string `validate:"required" example:"cg9Wgky3"`
|
||||
NewPassword string `validate:"required" example:"asfj2emv"`
|
||||
UseCache *bool `validate:"required" example:"true"`
|
||||
Theme *themePayload
|
||||
|
||||
// User role (1 for administrator account and 2 for regular account)
|
||||
|
@ -148,10 +147,6 @@ func (handler *Handler) userUpdate(w http.ResponseWriter, r *http.Request) *http
|
|||
}
|
||||
}
|
||||
|
||||
if payload.UseCache != nil {
|
||||
user.UseCache = *payload.UseCache
|
||||
}
|
||||
|
||||
if payload.Role != 0 {
|
||||
user.Role = portainer.UserRole(payload.Role)
|
||||
user.TokenIssueAt = time.Now().Unix()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue