This commit is contained in:
Tracker-Friendly 2024-03-30 19:47:08 +00:00
parent 8526134305
commit 4c6f0123a0
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] access_token = request.headers.get('Authorization').split(' ')[1]
conn = get_db_connection() conn = get_db_connection()
userid = int(conn.execute("SELECT creator FROM logins WHERE code = ?", (str(access_token),)).fetchone()[0]) userid = int(conn.execute("SELECT creator FROM logins WHERE openid = ?", (str(access_token),)).fetchone()[0])
user = get_user(userid) user = get_user(userid)
conn.close() conn.close()