mirror of https://github.com/portainer/portainer
fix(cache): set as true for a new admin [EE-6293] (#10689)
Co-authored-by: testa113 <testa113>pull/10690/head
parent
6bec4cdecc
commit
1bcbfb8213
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue