Fix session variable name
This commit is contained in:
parent
b3f56872d7
commit
88bfdb7530
|
@ -162,7 +162,7 @@ def index_post():
|
||||||
body=form.body.data,
|
body=form.body.data,
|
||||||
)
|
)
|
||||||
|
|
||||||
email = session.get('login')
|
email = session.get('username')
|
||||||
if email:
|
if email:
|
||||||
user = db.get_user(email)
|
user = db.get_user(email)
|
||||||
letters = db.get_user_letters(user.id)
|
letters = db.get_user_letters(user.id)
|
||||||
|
|
Loading…
Reference in New Issue