diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/Account.py | 5 | ||||
-rw-r--r-- | module/plugins/internal/Hoster.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index b437b4a55..951d279be 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -16,7 +16,7 @@ class WrongPassword(Exception): class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.04" + __version__ = "0.05" __description__ = """Base account plugin""" __license__ = "GPLv3" @@ -92,8 +92,9 @@ class Account(Plugin): def relogin(self, user): req = self.get_account_request(user) if req: - req.cj.clear() + req.clearCookies() req.close() + if user in self.infos: del self.infos[user] #: delete old information diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index 15c46101b..637d9f3b5 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -165,6 +165,8 @@ class Hoster(Plugin): """ self.thread = thread + self.req.renewHTTPRequest() + if self.account: self.account.check_login(self.user) else: |