From 1bcbfb821336b97aeca3caee66b4733d28df991a Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Mon, 27 Nov 2023 10:19:08 +1300 Subject: [PATCH] fix(cache): set as true for a new admin [EE-6293] (#10689) Co-authored-by: testa113 --- api/http/handler/users/admin_init.go | 1 + 1 file changed, 1 insertion(+) 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)