mirror of https://github.com/CIRCL/AIL-framework
fix: [2fa] fix name
parent
d5dccf630d
commit
4d55d3ad01
|
@ -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 New Issue