I was correct the first time

This commit is contained in:
Tracker-Friendly 2024-03-30 19:57:31 +00:00
parent 5c843c18eb
commit 5d41541921
1 changed files with 1 additions and 1 deletions

2
main
View File

@ -228,7 +228,7 @@ async def apiopeniduserinfo():
access_token = request.headers.get('Authorization').split(' ')[1]
conn = get_db_connection()
userid = int(conn.execute("SELECT creator FROM logins WHERE openid = ?", (str(access_token),)).fetchone()[0])
userid = int(conn.execute("SELECT creator FROM logins WHERE code = ?", (str(access_token),)).fetchone()[0])
user = get_user(userid)
conn.close()