fix: [2fa] fix name

otp
terrtia 2024-09-10 10:29:10 +02:00
parent d5dccf630d
commit 4d55d3ad01
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ class AILUser(UserMixin):
def init_setup_2fa(self, create=True): def init_setup_2fa(self, create=True):
if create: if create:
create_user_otp(self.user_id) 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) 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): def setup_2fa(self):