fix(cache): set as true for a new admin [EE-6293] (#10689)

Co-authored-by: testa113 <testa113>
pull/10690/head
Ali 2023-11-27 10:19:08 +13:00 committed by GitHub
parent 6bec4cdecc
commit 1bcbfb8213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ func (handler *Handler) adminInit(w http.ResponseWriter, r *http.Request) *httpe
user := &portainer.User{
Username: payload.Username,
Role: portainer.AdministratorRole,
UseCache: true,
}
user.Password, err = handler.CryptoService.Hash(payload.Password)