From 908886f2cd9567ddd0523d43532e33e4df8fd200 Mon Sep 17 00:00:00 2001 From: Caetan Date: Mon, 23 Sep 2024 05:53:08 +0200 Subject: [PATCH] Enforce account locks when creating new users (#3173) Properly enforce account locks when new users are created --------- Co-authored-by: Caetan Tojeiro Carpente --- controllers/api/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/api/user.go b/controllers/api/user.go index 5c4cfed5..9b2cb93b 100644 --- a/controllers/api/user.go +++ b/controllers/api/user.go @@ -109,6 +109,7 @@ func (as *Server) Users(w http.ResponseWriter, r *http.Request) { Role: role, RoleID: role.ID, PasswordChangeRequired: ur.PasswordChangeRequired, + AccountLocked: ur.AccountLocked, } err = models.PutUser(&user) if err != nil {