Forgot the ?

This commit is contained in:
Tracker-Friendly 2024-03-30 19:38:03 +00:00
parent f3755207e3
commit c70672a73d
1 changed files with 1 additions and 1 deletions

2
main
View File

@ -279,7 +279,7 @@ async def apiauthenticate():
nextjwt_token = jwt.encode(datatemplate2, SECRET_KEY, algorithm='HS256') nextjwt_token = jwt.encode(datatemplate2, SECRET_KEY, algorithm='HS256')
conn.execute("INSERT INTO logins (appId, secret, nextsecret, code, nextcode, creator, openid, nextopenid) VALUES (?, ?, ?, ?, ?, ?, ?)", conn.execute("INSERT INTO logins (appId, secret, nextsecret, code, nextcode, creator, openid, nextopenid) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
(str(appId), str(secretkey), str(secrets.token_hex(512)), str(secrets.token_hex(512)), str(secrets.token_hex(512)), int(user["id"]), str(jwt_token), str(nextjwt_token))) (str(appId), str(secretkey), str(secrets.token_hex(512)), str(secrets.token_hex(512)), str(secrets.token_hex(512)), int(user["id"]), str(jwt_token), str(nextjwt_token)))
conn.commit() conn.commit()