Simplified #30 fix.

This commit is contained in:
Arnaud Bos 2011-09-14 02:19:10 +02:00
parent 34ccb3546d
commit 6212b643ec

View file

@ -71,9 +71,8 @@ def authenticate(project_id=None):
if not project:
# But if the user try to connect to an unexisting project, we will
# propose him a link to the creation form.
if not project_id:
if request.method == "POST":
form.validate()
if request.method == "POST":
form.validate()
else:
create_project = project_id