Browse Source

[FIX] Use _compute_session_token to invalidate user sessions on auth_session_timeout

pull/1495/head
George Daramouskas 6 years ago
parent
commit
203c03e262
No known key found for this signature in database GPG Key ID: 5B4EF742F8CD859C
  1. 5
      auth_session_timeout/models/res_users.py

5
auth_session_timeout/models/res_users.py

@ -102,9 +102,8 @@ class ResUsers(models.Model):
'Exception updating session file access/modified times.',
)
@classmethod
def check(cls, *args, **kwargs):
res = super(ResUsers, cls).check(*args, **kwargs)
def _compute_session_token(self, sid):
res = super(ResUsers, self)._compute_session_token(sid)
if http.request:
http.request.env.user._auth_timeout_check()
return res
Loading…
Cancel
Save