mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add the project to the local context even if it is already in session.
This commit is contained in:
parent
3c4d87ae52
commit
95fb9bbbfd
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ def authenticate(redirect_url=None, project_id=None):
|
||||||
else:
|
else:
|
||||||
# if credentials are already in session, redirect
|
# if credentials are already in session, redirect
|
||||||
if project_id in session and project.password == session[project_id]:
|
if project_id in session and project.password == session[project_id]:
|
||||||
|
setattr(g, 'project', project)
|
||||||
redirect_url = redirect_url or url_for("list_bills")
|
redirect_url = redirect_url or url_for("list_bills")
|
||||||
return redirect(redirect_url)
|
return redirect(redirect_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue