style: Fix formatting

This commit is contained in:
Suraj Shetty 2020-11-02 16:11:24 +05:30 committed by GitHub
parent ae5de5f4a7
commit 88c08e72e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,7 +225,11 @@ def get_email_subject_for_2fa(kwargs_dict):
def get_email_body_for_2fa(kwargs_dict):
'''Get email body for 2fa.'''
body_template = 'Enter this code to complete your login:<br><br> <span style="font-size:18px;font-weight:bold;">{{otp}}</span>'
body_template = """
Enter this code to complete your login:
<br><br>
<b style="font-size: 18px;">{{ otp }}</b>
"""
body = frappe.render_template(body_template, kwargs_dict)
return body