From 9d2ae7d1ede489a6d702b0ccd2e522623726e9ff Mon Sep 17 00:00:00 2001 From: Bai Date: Sun, 23 Apr 2023 16:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=20utils/disable=5Fuse?= =?UTF-8?q?r=5Fmfa.sh=20otp=5Flevel=20=3D>=20mfa=5Flevel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/disable_user_mfa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/disable_user_mfa.sh b/utils/disable_user_mfa.sh index ba98a9db8..0663c3643 100644 --- a/utils/disable_user_mfa.sh +++ b/utils/disable_user_mfa.sh @@ -16,7 +16,7 @@ user = User.objects.filter(username="${username}") if not user: print("No user found") sys.exit(1) -user.update(otp_level=0) +user.update(mfa_level=0) print("Disable user ${username} success") EOF }