summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index 869005aae..a1045bbe7 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Account import Account
class ShareonlineBiz(Account):
__name__ = "ShareonlineBiz"
__type__ = "account"
- __version__ = "0.37"
+ __version__ = "0.38"
__status__ = "testing"
__description__ = """Share-online.biz account plugin"""
@@ -29,7 +29,7 @@ class ShareonlineBiz(Account):
api = dict(line.split("=") for line in res.splitlines() if "=" in line)
if not 'a' in api:
- self.login_fail(_("Invalid username/password"))
+ self.login_fail(res.strip('*').strip())
if api['a'].lower() == "not_available":
self.login_fail(_("No info available"))
@@ -65,9 +65,4 @@ class ShareonlineBiz(Account):
def login(self, user, password, data, req):
api = self.api_response(user, password, req)
- err = re.search(r'\*\*(.+?)\*\*', api)
-
- if not err:
- req.cj.setCookie("share-online.biz", 'a', api['a'])
- else:
- self.login_fail(err.group(1))
+ req.cj.setCookie("share-online.biz", 'a', api['a'])