Fix session variable name
This commit is contained in:
parent
b3f56872d7
commit
88bfdb7530
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue