updated user login session expire time to 8 hours
parent
77ba4b9233
commit
45414659df
|
@ -432,7 +432,7 @@ class UserLogin:
|
||||||
" VALUES (%s, %s, %s) ")
|
" VALUES (%s, %s, %s) ")
|
||||||
user_uuid = result['uuid']
|
user_uuid = result['uuid']
|
||||||
token = hashlib.sha1(os.urandom(24)).hexdigest()
|
token = hashlib.sha1(os.urandom(24)).hexdigest()
|
||||||
utc_expires = datetime.utcnow() + timedelta(seconds=1000 * 60 * 60 * 8)
|
utc_expires = datetime.utcnow() + timedelta(seconds=60 * 60 * 8)
|
||||||
cursor.execute(add_session, (user_uuid, token, utc_expires))
|
cursor.execute(add_session, (user_uuid, token, utc_expires))
|
||||||
cnx.commit()
|
cnx.commit()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Loading…
Reference in New Issue