summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index af164c3a5..e34543100 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -343,3 +343,9 @@ class Plugin(object):
if delete:
remove(self.lastDownload)
return name
+
+ def resetAccount(self):
+ """ invalidates an account, so it will not be used """
+ if self.account:
+ data = self.account.getAccountData(self.user)
+ data["valid"] = False