From 88c08e72e61d96c53379050cbb24a273a7145b84 Mon Sep 17 00:00:00 2001
From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Date: Mon, 2 Nov 2020 16:11:24 +0530
Subject: [PATCH] style: Fix formatting
---
frappe/twofactor.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/frappe/twofactor.py b/frappe/twofactor.py
index bb6c0a97d8..7ee3b510ba 100644
--- a/frappe/twofactor.py
+++ b/frappe/twofactor.py
@@ -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:
{{otp}}'
+ body_template = """
+ Enter this code to complete your login:
+
+ {{ otp }}
+ """
body = frappe.render_template(body_template, kwargs_dict)
return body