Remove HTML part and 90 spaces from sent login email

This commit is contained in:
j3s 2020-05-12 00:02:55 -05:00 committed by forest
parent d06e07cfd3
commit bae9c2311d

View File

@ -50,15 +50,8 @@ def login():
current_app.config["FLASK_MAIL_INSTANCE"].send( current_app.config["FLASK_MAIL_INSTANCE"].send(
Message( Message(
"Click This Link to Login to Capsul", "Click This Link to Login to Capsul",
body=f""" body=(f"Navigate to {link} to log into Capsul.\n"
Navigate to {link} to log into capsul. "\nIf you didn't request this, ignore this message."),
If you didn't request this, ignore this message.
""",
html=f"""
<p>Navigate to <a href="{link}">{link}</a> to log into capsul.</p>
<p>If you didn't request this, ignore this message.</p>
""",
recipients=[email] recipients=[email]
) )
) )