Fixed issue related to email authentication of Two-factor authentication. #7308

pull/7224/head^2
Anil Sahoo 2024-03-26 11:27:35 +05:30 committed by GitHub
parent c0a1429664
commit e99fc02f9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -227,7 +227,7 @@ class EmailAuthentication(BaseMFAuth):
def _registration_view_after_code_sent(self, _form_data):
session['mfa_email_id'] = _form_data.get('send_to', None)
success, _, message = _send_code_to_email(
success, http_code, message = _send_code_to_email(
session['mfa_email_id']
)
@ -239,7 +239,8 @@ class EmailAuthentication(BaseMFAuth):
label=email_authentication_label(),
auth_method=EMAIL_AUTH_METHOD,
message=message,
otp_placeholder=_("Enter code here")
otp_placeholder=_("Enter code here"),
http_code=http_code,
)
def registration_view(self, _form_data):