summaryrefslogtreecommitdiff
path: root/test/ejabberd_SUITE_data
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2016-05-13 17:26:15 +0300
committerAlexey Shchepin <alexey@process-one.net>2016-05-13 17:56:52 +0300
commit9bd446e51922e1bd74a7ebab4355ec74cb3bbcfa (patch)
treecd24926c1a24e9770e21da8a512969d338c93c88 /test/ejabberd_SUITE_data
parentUpdate SQL escaping (diff)
Less strict extauth.py
Diffstat (limited to 'test/ejabberd_SUITE_data')
-rwxr-xr-xtest/ejabberd_SUITE_data/extauth.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ejabberd_SUITE_data/extauth.py b/test/ejabberd_SUITE_data/extauth.py
index 7f32eb8b..84c00014 100755
--- a/test/ejabberd_SUITE_data/extauth.py
+++ b/test/ejabberd_SUITE_data/extauth.py
@@ -6,17 +6,17 @@ def read():
pkt = sys.stdin.read(pkt_size).split(':')
cmd = pkt[0]
args_num = len(pkt) - 1
- if cmd == 'auth' and args_num == 3:
+ if cmd == 'auth' and args_num >= 3:
write(True)
elif cmd == 'isuser' and args_num == 2:
write(True)
- elif cmd == 'setpass' and args_num == 3:
+ elif cmd == 'setpass' and args_num >= 3:
write(True)
- elif cmd == 'tryregister' and args_num == 3:
+ elif cmd == 'tryregister' and args_num >= 3:
write(True)
elif cmd == 'removeuser' and args_num == 2:
write(True)
- elif cmd == 'removeuser3' and args_num == 3:
+ elif cmd == 'removeuser3' and args_num >= 3:
write(True)
else:
write(False)