1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

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

Co-authored-by: testa113 <testa113>
This commit is contained in:
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

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)