aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney
diff options
context:
space:
mode:
authorCharles Rose <33735833+rosechar@users.noreply.github.com>2020-04-07 11:09:33 -0400
committerGitHub <noreply@github.com>2020-04-07 17:09:33 +0200
commit4b79efe18a9952268d65b98813e3929a8179ed2c (patch)
treeacca127df71dfc0a85268b28da8badbd8608bd10 /ihatemoney
parent23b7e397f2f9e62b961096daa03b0b04546b4b03 (diff)
downloadihatemoney-mirror-4b79efe18a9952268d65b98813e3929a8179ed2c.zip
ihatemoney-mirror-4b79efe18a9952268d65b98813e3929a8179ed2c.tar.gz
ihatemoney-mirror-4b79efe18a9952268d65b98813e3929a8179ed2c.tar.bz2
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>
Diffstat (limited to 'ihatemoney')
-rw-r--r--ihatemoney/web.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ihatemoney/web.py b/ihatemoney/web.py
index 1b80ab6..a3b1072 100644
--- a/ihatemoney/web.py
+++ b/ihatemoney/web.py
@@ -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"))