From 88bfdb75303eb11824f5150f3ebde5c83bded504 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 24 Sep 2022 21:38:00 +0000 Subject: [PATCH] Fix session variable name --- undercover/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undercover/routes.py b/undercover/routes.py index b6eb9c5..03aeb0a 100644 --- a/undercover/routes.py +++ b/undercover/routes.py @@ -162,7 +162,7 @@ def index_post(): body=form.body.data, ) - email = session.get('login') + email = session.get('username') if email: user = db.get_user(email) letters = db.get_user_letters(user.id)