mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -133,7 +133,7 @@ def delUser():
|
||||
if not data[0]:
|
||||
return data[1]
|
||||
|
||||
ret = public.execShell('echo ' + args['username'] + '|l2tp -l')
|
||||
ret = public.execShell('echo ' + args['username'] + '|l2tp -d')
|
||||
if ret[1] == '':
|
||||
return public.returnJson(True, '删除成功!:' + ret[0])
|
||||
return public.returnJson(False, '删除失败:' + ret[0])
|
||||
|
||||
Reference in New Issue
Block a user