Ticket #6121: ticket_6121_workaround.diff
| File ticket_6121_workaround.diff, 1.1 KB (added by trebor74hr@…, 4 years ago) |
|---|
-
trac/web/auth.py
diff -r 274c193231b9 trac/web/auth.py
a b class LoginModule(Component): 158 158 # cookies older than 10 days 159 159 160 160 db = self.env.get_db_cnx() 161 161 162 162 cursor = db.cursor() 163 163 164 # QUESTION: why to logout from other ip-s? ulr1 071121 164 165 165 166 cursor.execute("DELETE FROM auth_cookie WHERE name=%s OR time < %s", 166 167 167 168 (req.authname, int(time.time()) - 86400 * 10))
