Skip to content

Commit

Permalink
Transmit domain to jsxc.nextcloud ExAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelWaldvogel committed Jun 4, 2017
1 parent 5f5e281 commit 091d1fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions external_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
DEFAULT_LOG_DIR = '/var/log/ejabberd'
URL = ''
SECRET = ''
VERSION = '0.2.0'
VERSION = '0.2.0+'

usersafe_encoding = maketrans('-$%', 'OIl')

Expand Down Expand Up @@ -78,6 +78,7 @@ def verify_cloud(username, server, password):
response = send_request({
'operation':'auth',
'username':username,
'domain':server,
'password':password
});

Expand All @@ -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:
Expand Down

0 comments on commit 091d1fc

Please sign in to comment.