fix: [2fa] fix name

This commit is contained in:
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

View file

@ -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):