Fix typo in thrimshim auth SQL

pull/418/head
Mike Lang 1 month ago
parent 8533c01d7f
commit 696d1c8baa

@ -67,9 +67,9 @@ def check_user(request, role):
email = idinfo['email'].lower() email = idinfo['email'].lower()
conn = app.db_manager.get_conn() conn = app.db_manager.get_conn()
query = """ query = """
SELECT email, %(role)s SELECT 1
FROM roles FROM roles
WHERE lower(email) = %(email)s AND %(role) WHERE lower(email) = %(email)s AND %(role)s
""" """
results = database.query(conn, query, email=email, role=role) results = database.query(conn, query, email=email, role=role)
row = results.fetchone() row = results.fetchone()

Loading…
Cancel
Save