Commit 8bd78a6a authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Invalidate user object before updating last login date

to ensure user object modifications that took place during the
login request, such as updated token expiration date, won't
get overridden.
parent 5e84cc59
......@@ -190,7 +190,7 @@ class AuthProvider(object):
def update_last_login_at(self):
instance = self._instance
user = instance.user
user = instance.user.__class__.objects.get(
date =
instance.last_login_at = user.last_login = date
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment