Merge pull request #3664 from InspectorCaracal/patch-32

Remove last_login update on disconnect
This commit is contained in:
Griatch 2024-11-11 19:59:37 +01:00 committed by GitHub
commit fa48cb441a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,9 +161,6 @@ class ServerSession(_BASE_SESSION_CLASS):
account = self.account
if self.puppet:
account.unpuppet_object(self)
uaccount = account
uaccount.last_login = timezone.now()
uaccount.save()
# calling account hook
account.at_disconnect(reason)
self.logged_in = False