Author: damoxc

Revision: 5682

Log:
        increase the expires time each time a session is checked for 
authentication

Diff:
Modified: trunk/deluge/ui/web/auth.py
===================================================================
--- trunk/deluge/ui/web/auth.py 2009-08-19 23:17:50 UTC (rev 5681)
+++ trunk/deluge/ui/web/auth.py 2009-08-19 23:30:36 UTC (rev 5682)
@@ -168,7 +168,9 @@
             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"):



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to