mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Save cherrypy sessions to disk instead of ram
This commit is contained in:
parent
645ef86c75
commit
b2b728a3cc
2 changed files with 22 additions and 20 deletions
|
@ -71,7 +71,7 @@ def user_login(username=None, password=None):
|
|||
|
||||
if result:
|
||||
# Refresh the users list to make sure we have all the correct permissions.
|
||||
users.refresh_users()
|
||||
refresh_users()
|
||||
# Successful login
|
||||
return True
|
||||
else:
|
||||
|
@ -243,7 +243,6 @@ class AuthController(object):
|
|||
|
||||
expiry = datetime.now() + (timedelta(days=30) if remember_me == '1' else timedelta(minutes=60))
|
||||
|
||||
cherrypy.session.regenerate()
|
||||
cherrypy.request.login = username
|
||||
cherrypy.session[SESSION_KEY] = {'user_id': user_id,
|
||||
'user': username,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue