diff --git a/api/http/handler/users/admin_init.go b/api/http/handler/users/admin_init.go index 753ec97a6..ec73ca246 100644 --- a/api/http/handler/users/admin_init.go +++ b/api/http/handler/users/admin_init.go @@ -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)