diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-02-16 20:34:09 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-02-16 20:34:09 +0300 |
commit | f5d208441d97322c3c5e25047b425d2f83565655 (patch) | |
tree | 577721de8da61f4e86b5a289a29a370914b75a2d /test/ejabberd_SUITE_data | |
parent | Handle gracefully that mnesia is already loaded when starting tests (diff) |
Improve example extauth script
Diffstat (limited to 'test/ejabberd_SUITE_data')
-rwxr-xr-x | test/ejabberd_SUITE_data/extauth.py | 4 |
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) |