mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-06 11:36:32 +00:00
Merge pull request #85 from jumpserver/bug_fix_issue_83
修复用户禁用后仍可ssh登陆跳板机
This commit is contained in:
commit
4dfef99216
@ -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
Block a user