From 091d1fcaf0477eb5e1b6f89b34f0fa6898d2eb9f Mon Sep 17 00:00:00 2001 From: Marcel Waldvogel Date: Sun, 4 Jun 2017 22:27:27 +0200 Subject: [PATCH] Transmit domain to jsxc.nextcloud ExAPI --- external_cloud.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/external_cloud.py b/external_cloud.py index 5349734..d85b1b5 100755 --- a/external_cloud.py +++ b/external_cloud.py @@ -16,7 +16,7 @@ DEFAULT_LOG_DIR = '/var/log/ejabberd' URL = '' SECRET = '' -VERSION = '0.2.0' +VERSION = '0.2.0+' usersafe_encoding = maketrans('-$%', 'OIl') @@ -78,6 +78,7 @@ def verify_cloud(username, server, password): response = send_request({ 'operation':'auth', 'username':username, + 'domain':server, 'password':password }); @@ -92,7 +93,8 @@ def verify_cloud(username, server, password): def is_user_cloud(username, server): response = send_request({ 'operation':'isuser', - 'username':username + 'username':username, + 'domain':server }); if not response: