aboutsummaryrefslogtreecommitdiff
path: root/test/ejabberd_SUITE_data/extauth.py
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-12-01 15:05:09 +0100
committerMickael Remond <mremond@process-one.net>2016-12-01 15:05:09 +0100
commit309fd56fb4bbb82215e4e9873eeb677e49f804de (patch)
tree3993dc3b1c9d81c18163f853760e678e3d3337d1 /test/ejabberd_SUITE_data/extauth.py
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
parentFixes pt-br translation (thanks to Rodrigues)(#1393) (diff)
Merge branch 'master' of github.com:processone/ejabberd
Diffstat (limited to 'test/ejabberd_SUITE_data/extauth.py')
-rwxr-xr-xtest/ejabberd_SUITE_data/extauth.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ejabberd_SUITE_data/extauth.py b/test/ejabberd_SUITE_data/extauth.py
index 84c000144..fa2c9efd0 100755
--- a/test/ejabberd_SUITE_data/extauth.py
+++ b/test/ejabberd_SUITE_data/extauth.py
@@ -7,7 +7,10 @@ def read():
cmd = pkt[0]
args_num = len(pkt) - 1
if cmd == 'auth' and args_num >= 3:
- write(True)
+ if pkt[1] == "wrong":
+ write(False)
+ else:
+ write(True)
elif cmd == 'isuser' and args_num == 2:
write(True)
elif cmd == 'setpass' and args_num >= 3: