mirror of https://github.com/jumpserver/jumpserver
fix(userdel) 修复无法删除在线用户bug
当用户已经登录到jumpserver时,web上删除用户时失败,也没有提示 修改方法: userdel -r -f 强制删除 close #156pull/157/head
parent
bd59b6316e
commit
fbc3078c07
|
@ -180,7 +180,7 @@ def server_del_user(username):
|
|||
delete a user from jumpserver linux system
|
||||
删除系统上的某用户
|
||||
"""
|
||||
bash('userdel -r %s' % username)
|
||||
bash('userdel -r -f %s' % username)
|
||||
|
||||
|
||||
def get_display_msg(user, password='', ssh_key_pwd='', send_mail_need=False):
|
||||
|
|
Loading…
Reference in New Issue