From 39cb95184d20a7218d76d798ffaeeffd42980349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 9 Apr 2023 17:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=BC=B1=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E6=97=B6=E5=8F=AA=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=B7=B2=E5=90=AF=E7=94=A8=E7=9A=84=E7=AE=A1=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/admin_dao.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/db/models/admin_dao.go b/internal/db/models/admin_dao.go index 911360b9..36a4aa86 100644 --- a/internal/db/models/admin_dao.go +++ b/internal/db/models/admin_dao.go @@ -275,6 +275,7 @@ func (this *AdminDAO) CountAllEnabledAdmins(tx *dbs.Tx, keyword string, hasWeakP } if hasWeakPasswords { query.Attr("password", weakPasswords) + query.Attr("isOn", true) } return query. State(AdminStateEnabled). @@ -290,6 +291,7 @@ func (this *AdminDAO) ListEnabledAdmins(tx *dbs.Tx, keyword string, hasWeakPassw } if hasWeakPasswords { query.Attr("password", weakPasswords) + query.Attr("isOn", true) } _, err = query.