mirror of https://github.com/jumpserver/jumpserver
fix(connect.py) 用户禁用后仍可ssh登陆jumpserver
修改connect.py添加判断 资产禁用还没有考虑,改动太大,留后续版本更改 ref https://github.com/jumpserver/jumpserver/issues/83pull/85/head
parent
f79675b265
commit
47ce09393c
|
@ -746,6 +746,9 @@ def main():
|
||||||
if not login_user: # 判断用户是否存在
|
if not login_user: # 判断用户是否存在
|
||||||
color_print('没有该用户,或许你是以root运行的 No that user.', exits=True)
|
color_print('没有该用户,或许你是以root运行的 No that user.', exits=True)
|
||||||
|
|
||||||
|
if not login_user.is_active:
|
||||||
|
color_print('您的用户已禁用,请联系管理员.', exits=True)
|
||||||
|
|
||||||
gid_pattern = re.compile(r'^g\d+$')
|
gid_pattern = re.compile(r'^g\d+$')
|
||||||
nav = Nav(login_user)
|
nav = Nav(login_user)
|
||||||
nav.print_nav()
|
nav.print_nav()
|
||||||
|
|
Loading…
Reference in New Issue