]> granicus.if.org Git - ejabberd/commitdiff
Less strict extauth.py
authorAlexey Shchepin <alexey@process-one.net>
Fri, 13 May 2016 14:26:15 +0000 (17:26 +0300)
committerAlexey Shchepin <alexey@process-one.net>
Fri, 13 May 2016 14:56:52 +0000 (17:56 +0300)
test/ejabberd_SUITE_data/extauth.py

index 7f32eb8be8892097cedaa3c48854398845b47039..84c000144ce1a1d70da0e8469789e9e1326af13a 100755 (executable)
@@ -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)