forked from 3wordchant/capsul-flask
Remove HTML part and 90 spaces from sent login email
This commit is contained in:
parent
d06e07cfd3
commit
bae9c2311d
@ -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]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -83,4 +76,4 @@ def magiclink(token):
|
|||||||
@bp.route("/logout")
|
@bp.route("/logout")
|
||||||
def logout():
|
def logout():
|
||||||
session.clear()
|
session.clear()
|
||||||
return redirect(url_for("index"))
|
return redirect(url_for("index"))
|
||||||
|
Loading…
Reference in New Issue
Block a user