Oop
This commit is contained in:
parent
8526134305
commit
4c6f0123a0
2
main
2
main
|
@ -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()
|
||||||
|
|
Reference in New Issue