mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Improve example extauth script
This commit is contained in:
parent
71a856deaa
commit
f5d208441d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user