mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Less strict extauth.py
This commit is contained in:
parent
792f47b4bd
commit
9bd446e519
@ -6,17 +6,17 @@ def read():
|
|||||||
pkt = sys.stdin.read(pkt_size).split(':')
|
pkt = sys.stdin.read(pkt_size).split(':')
|
||||||
cmd = pkt[0]
|
cmd = pkt[0]
|
||||||
args_num = len(pkt) - 1
|
args_num = len(pkt) - 1
|
||||||
if cmd == 'auth' and args_num == 3:
|
if cmd == 'auth' and args_num >= 3:
|
||||||
write(True)
|
write(True)
|
||||||
elif cmd == 'isuser' and args_num == 2:
|
elif cmd == 'isuser' and args_num == 2:
|
||||||
write(True)
|
write(True)
|
||||||
elif cmd == 'setpass' and args_num == 3:
|
elif cmd == 'setpass' and args_num >= 3:
|
||||||
write(True)
|
write(True)
|
||||||
elif cmd == 'tryregister' and args_num == 3:
|
elif cmd == 'tryregister' and args_num >= 3:
|
||||||
write(True)
|
write(True)
|
||||||
elif cmd == 'removeuser' and args_num == 2:
|
elif cmd == 'removeuser' and args_num == 2:
|
||||||
write(True)
|
write(True)
|
||||||
elif cmd == 'removeuser3' and args_num == 3:
|
elif cmd == 'removeuser3' and args_num >= 3:
|
||||||
write(True)
|
write(True)
|
||||||
else:
|
else:
|
||||||
write(False)
|
write(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user