From 865027b3ec67380735108fff58ae13161780a91c Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 19 Aug 2009 23:30:36 +0000 Subject: [PATCH] increase the expires time each time a session is checked for authentication --- deluge/ui/web/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py index 88ab81edf..c093d7631 100644 --- a/deluge/ui/web/auth.py +++ b/deluge/ui/web/auth.py @@ -168,7 +168,9 @@ class Auth(JSONComponent): auth_level = AUTH_LEVEL_NONE session_id = None else: - auth_level = config["sessions"][session_id]["level"] + session = config["sessions"][session_id] + auth_level = session["level"] + session["expires"] = int(time.time()) + config["session_timeout"] if method: if not hasattr(method, "_json_export"):