From 4d55d3ad01c3d5694f0de996d1c76f1a62c643ff Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 10 Sep 2024 10:29:10 +0200 Subject: [PATCH] fix: [2fa] fix name --- bin/lib/ail_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/ail_users.py b/bin/lib/ail_users.py index d5406580..90d3ae7c 100755 --- a/bin/lib/ail_users.py +++ b/bin/lib/ail_users.py @@ -544,7 +544,7 @@ class AILUser(UserMixin): def init_setup_2fa(self, create=True): if create: create_user_otp(self.user_id) - instance_name = f'{ail_2fa_name}: {self.user_id}' + instance_name = ail_2fa_name return get_user_otp_qr_code(self.user_id, instance_name), get_user_otp_uri(self.user_id, instance_name), get_user_hotp_code(self.user_id) def setup_2fa(self):