summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FreeWayMe.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/FreeWayMe.py')
-rw-r--r--module/plugins/accounts/FreeWayMe.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/module/plugins/accounts/FreeWayMe.py b/module/plugins/accounts/FreeWayMe.py
index fe5a79949..cfba1ba06 100644
--- a/module/plugins/accounts/FreeWayMe.py
+++ b/module/plugins/accounts/FreeWayMe.py
@@ -5,13 +5,13 @@ from module.common.json_layer import json_loads
class FreeWayMe(Account):
- __name__ = "FreeWayMe"
- __type__ = "account"
+ __name__ = "FreeWayMe"
+ __type__ = "account"
__version__ = "0.11"
__description__ = """FreeWayMe account plugin"""
- __author_name__ = "Nicolas Giese"
- __author_mail__ = "james@free-way.me"
+ __license__ = "GPLv3"
+ __authors__ = [("Nicolas Giese", "james@free-way.me")]
def loadAccountInfo(self, user, req):
@@ -32,9 +32,11 @@ class FreeWayMe(Account):
return account_info
+
def getpw(self, user):
return self.accounts[user]['password']
+
def login(self, user, data, req):
status = self.getAccountStatus(user, req)
@@ -42,10 +44,11 @@ class FreeWayMe(Account):
if not status:
self.wrongPassword()
+
def getAccountStatus(self, user, req):
answer = req.load("https://www.free-way.me/ajax/jd.php",
get={"id": 4, "user": user, "pass": self.accounts[user]['password']})
- self.logDebug("login: %s" % answer)
+ self.logDebug("Login: %s" % answer)
if answer == "Invalid login":
self.wrongPassword()
return False