From 47ce09393c59300f5b97f7b2b7de390c044fca86 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 25 Feb 2016 18:34:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(connect.py)=20=E7=94=A8=E6=88=B7=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=90=8E=E4=BB=8D=E5=8F=AFssh=E7=99=BB=E9=99=86jumpse?= =?UTF-8?q?rver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改connect.py添加判断 资产禁用还没有考虑,改动太大,留后续版本更改 ref https://github.com/jumpserver/jumpserver/issues/83 --- connect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connect.py b/connect.py index 0be5abdfb..531c608a9 100755 --- a/connect.py +++ b/connect.py @@ -746,6 +746,9 @@ def main(): if not login_user: # 判断用户是否存在 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+$') nav = Nav(login_user) nav.print_nav()