-
This commit is contained in:
parent
354963b353
commit
8322535ffc
2
db.py
2
db.py
@ -113,7 +113,7 @@ def add_auth_token(user_id):
|
|||||||
connect()
|
connect()
|
||||||
with get_cur() as cur:
|
with get_cur() as cur:
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
INSERT INTO auth_tokens (user_id, token, expries_on)
|
INSERT INTO auth_tokens (user_id, token, expires_on)
|
||||||
VALUES (%s, %s, NOW() + INTERVAL '1 day')
|
VALUES (%s, %s, NOW() + INTERVAL '1 day')
|
||||||
""",(user_id,token,))
|
""",(user_id,token,))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user