mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Improve example extauth script
This commit is contained in:
parent
71a856deaa
commit
f5d208441d
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue