mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-15 03:21:38 -08:00
Set login timeout to 12 hours
This commit is contained in:
parent
7e621848cb
commit
7b5e9fd5f7
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def next_item(odic, key):
|
||||||
def check_login_status():
|
def check_login_status():
|
||||||
return ('is_logged_in' not in session or
|
return ('is_logged_in' not in session or
|
||||||
session['is_logged_in'] == False or
|
session['is_logged_in'] == False or
|
||||||
(datetime.now(tz) - session['loginTime']).total_seconds() > 3600)
|
(datetime.now(tz) - session['loginTime']).total_seconds() > 43200)
|
||||||
|
|
||||||
def send_email(to, subject, text):
|
def send_email(to, subject, text):
|
||||||
return requests.post(
|
return requests.post(
|
||||||
|
|
Loading…
Reference in a new issue