Forgot the ?
This commit is contained in:
parent
f3755207e3
commit
c70672a73d
2
main
2
main
|
@ -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()
|
||||||
|
|
Reference in New Issue