1
0
Fork 0
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:
Alexis Metaireau 2011-08-20 00:28:58 +02:00
parent 3c4d87ae52
commit 95fb9bbbfd

View file

@ -44,6 +44,7 @@ def authenticate(redirect_url=None, project_id=None):
else:
# if credentials are already in session, redirect
if project_id in session and project.password == session[project_id]:
setattr(g, 'project', project)
redirect_url = redirect_url or url_for("list_bills")
return redirect(redirect_url)