summaryrefslogtreecommitdiffstats
path: root/module/remote/RemoteManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/RemoteManager.py')
-rw-r--r--module/remote/RemoteManager.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/remote/RemoteManager.py b/module/remote/RemoteManager.py
index bc40ea124..fbc7bc5f1 100644
--- a/module/remote/RemoteManager.py
+++ b/module/remote/RemoteManager.py
@@ -42,6 +42,9 @@ class BackendBase(Thread):
def serve(self):
pass
+
+ def checkAuth(self, user, password, remoteip=None):
+ return self.manager.checkAuth(user, password, remoteip)
class RemoteManager():
available = ("XMLRPCBackend", )
@@ -65,4 +68,7 @@ class RemoteManager():
else:
backend.start()
self.backends.append(backend)
-
+ def checkAuth(self, user, password, remoteip=None):
+ if self.core.config["remote"]["nolocalauth"] and remoteip == "127.0.0.1":
+ return True
+ return self.core.db.checkAuth(user, password)