From bae9c2311d1237334660b8aa7d538f8a512b6c94 Mon Sep 17 00:00:00 2001 From: j3s Date: Tue, 12 May 2020 00:02:55 -0500 Subject: [PATCH] Remove HTML part and 90 spaces from sent login email --- capsulflask/auth.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/capsulflask/auth.py b/capsulflask/auth.py index 51535e2..cda0942 100644 --- a/capsulflask/auth.py +++ b/capsulflask/auth.py @@ -50,15 +50,8 @@ def login(): current_app.config["FLASK_MAIL_INSTANCE"].send( Message( "Click This Link to Login to Capsul", - body=f""" - Navigate to {link} to log into capsul. - - If you didn't request this, ignore this message. - """, - html=f""" -

Navigate to {link} to log into capsul.

-

If you didn't request this, ignore this message.

- """, + body=(f"Navigate to {link} to log into Capsul.\n" + "\nIf you didn't request this, ignore this message."), recipients=[email] ) ) @@ -83,4 +76,4 @@ def magiclink(token): @bp.route("/logout") def logout(): session.clear() - return redirect(url_for("index")) \ No newline at end of file + return redirect(url_for("index"))