mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
updated web.py to make session permanent (#547)
* moved making session permanent to after authentication in web.py Co-authored-by: Charlie Rose <charlierose@Charlies-MacBook-Pro.local>
This commit is contained in:
parent
23b7e397f2
commit
4b79efe18a
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ def authenticate(project_id=None):
|
|||
# add the project on the top of the list
|
||||
session["projects"].insert(0, (project_id, project.name))
|
||||
session[project_id] = True
|
||||
# Set session to permanent to make language choice persist
|
||||
session.permanent = True
|
||||
session.update()
|
||||
setattr(g, "project", project)
|
||||
return redirect(url_for(".list_bills"))
|
||||
|
|
Loading…
Reference in a new issue