Commit 680f06a0 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix login bug

parent d63151fd
......@@ -35,7 +35,7 @@ def login():
form_data = request.form
email = form_data["email"]
client = get_zoe_client()
user = client.user_get(email)
user = client.user_get_by_email(email)
if user is None:
user = client.user_new(email)
session["user_id"] = user.id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment