From f7d309268fd870458aa8472c041289e17eae9aa5 Mon Sep 17 00:00:00 2001 From: Sindre Stephansen Date: Wed, 18 Mar 2020 21:09:02 +0100 Subject: [PATCH] Properly indent email messages --- src/app/views/register.py | 7 +++---- src/app/views/reset.py | 11 +++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/app/views/register.py b/src/app/views/register.py index 697de9b..835dfab 100755 --- a/src/app/views/register.py +++ b/src/app/views/register.py @@ -74,11 +74,10 @@ class Register: sendmail( 'Verify your Beelance account', - """ - Welcome to Beelance! + """Welcome to Beelance! - To verify your account, please go to this link: {url} - """.format(url=verify_url), +To verify your account, please go to this link: {url} +""".format(url=verify_url), data.full_name, data.email, ) diff --git a/src/app/views/reset.py b/src/app/views/reset.py index 0dfe1dd..586029f 100644 --- a/src/app/views/reset.py +++ b/src/app/views/reset.py @@ -31,14 +31,13 @@ class RequestReset: sendmail( 'Reset your Beelance password', - """ - Hi! + """Hi! - Someone requested a password reset for your account. If that wasn't you you can ignore this email. +Someone requested a password reset for your account. If you didn't request this, you can ignore this email. - If you want to reset your password, log in with this password: {password} - Then you will be able to set a new password. - """.format(password=password), +If you want to reset your password, log in with this password: {password} +Then you will be able to set a new password. +""".format(password=password), "", data.email, )