oops
This commit is contained in:
@@ -67,21 +67,13 @@ def get_active_user():
|
|||||||
|
|
||||||
|
|
||||||
def create_session(user_id):
|
def create_session(user_id):
|
||||||
print('key')
|
|
||||||
key = secrets.token_hex(16)
|
key = secrets.token_hex(16)
|
||||||
print(key)
|
|
||||||
print('user id')
|
|
||||||
print(user_id)
|
|
||||||
print('expires')
|
|
||||||
expires_at = int(time.time()) + 31 * 24 * 60 * 60
|
expires_at = int(time.time()) + 31 * 24 * 60 * 60
|
||||||
print(expires_at)
|
|
||||||
print('create')
|
|
||||||
s = Sessions.create({
|
s = Sessions.create({
|
||||||
"key": key,
|
"key": key,
|
||||||
"user_id": user_id,
|
"user_id": user_id,
|
||||||
"expires_at": expires_at,
|
"expires_at": expires_at,
|
||||||
})
|
})
|
||||||
print(s)
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user