We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502a6a3 commit 0d5d87fCopy full SHA for 0d5d87f
1 file changed
core/routes.py
@@ -387,7 +387,6 @@ async def email_subscribe(request):
387
388
@root.get('/schoolweek/unsubscribe/<email>')
389
async def email_unsubscribe(request, email):
390
- # TODO: somehow verify that the person visiting the link is actually the person who owns the email
391
async with open_db_connection(request.app) as conn:
392
await conn.execute('DELETE FROM mailing_list WHERE email = $1', email)
393
return add_message(request, 'success', 'Your email has been removed from mailing list.', '/schoolweek')
0 commit comments