mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -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():
|
||||
return ('is_logged_in' not in session 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):
|
||||
return requests.post(
|
||||
|
|
Loading…
Reference in a new issue