Commit 47ed65e3 authored by Martin Mareš's avatar Martin Mareš
Browse files

Bugfix in CAS registration

parent e9067925
......@@ -1379,7 +1379,7 @@ def session_from_cas(user, attrs):
email = primary_cas_email(attrs['mail'])
db_query("""
INSERT INTO owl_users(ukco, first_name, last_name, email)
VALUES (%s, %s, %s)
VALUES (%s, %s, %s, %s)
RETURNING uid, ukco, first_name, last_name, email, is_admin, inline_att
""", (user, attrs['givenname'], attrs['sn'], email))
row = db.fetchone()
......
Supports Markdown
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