Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
Prev Previous commit
removes leading slash from token url
  • Loading branch information
net8floz committed Mar 6, 2020
commit b98cda057324d573b316ca8a79d13bf51815523c
2 changes: 1 addition & 1 deletion CodeChallenge/api/vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def vote_cast(answer_id: int):
msg = Message(subject="Vote Confirmation",
body="Click the following link to confirm "
" your vote. You may only vote once. "
f"\n\n{current_app.config['EXTERNAL_URL']}/vote-confirmation?token={tok}",
f"\n\n{current_app.config['EXTERNAL_URL']}vote-confirmation?token={tok}",
recipients=[v.voter_email])

if current_app.config.get("TESTING", False):
Expand Down