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 {