summaryrefslogtreecommitdiff
path: root/test/ejabberd_SUITE_data
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-02-16 20:34:09 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-02-16 20:34:09 +0300
commitf5d208441d97322c3c5e25047b425d2f83565655 (patch)
tree577721de8da61f4e86b5a289a29a370914b75a2d /test/ejabberd_SUITE_data
parentHandle gracefully that mnesia is already loaded when starting tests (diff)
Improve example extauth script
Diffstat (limited to 'test/ejabberd_SUITE_data')
-rwxr-xr-xtest/ejabberd_SUITE_data/extauth.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ejabberd_SUITE_data/extauth.py b/test/ejabberd_SUITE_data/extauth.py
index 263d6464..b6a217fc 100755
--- a/test/ejabberd_SUITE_data/extauth.py
+++ b/test/ejabberd_SUITE_data/extauth.py
@@ -13,6 +13,10 @@ def read():
write(True)
elif cmd == 'isuser':
u, s = pkt.split(':', 2)[1:]
+ if u == "wrong":
+ write(False)
+ else:
+ write(True)
elif cmd == 'setpass':
u, s, p = pkt.split(':', 3)[1:]
write(True)