fix: translate email body for 2FA (#17045)
This commit is contained in:
parent
f8f29e284f
commit
900f829d83
1 changed files with 3 additions and 1 deletions
|
|
@ -277,7 +277,9 @@ def get_email_subject_for_qr_code(kwargs_dict):
|
|||
|
||||
def get_email_body_for_qr_code(kwargs_dict):
|
||||
"""Get QRCode email body."""
|
||||
body_template = "Please click on the following link and follow the instructions on the page.<br><br> {{qrcode_link}}"
|
||||
body_template = _(
|
||||
"Please click on the following link and follow the instructions on the page. {0}"
|
||||
).format("<br><br> {{qrcode_link}}")
|
||||
body = frappe.render_template(body_template, kwargs_dict)
|
||||
return body
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue