mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [2fa] fix name
This commit is contained in:
parent
d5dccf630d
commit
4d55d3ad01
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue