Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
4dfef992
Commit
4dfef992
authored
Feb 25, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #85 from jumpserver/bug_fix_issue_83
修复用户禁用后仍可ssh登陆跳板机
parents
d0ba0503
47ce0939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
connect.py
connect.py
+3
-0
No files found.
connect.py
View file @
4dfef992
...
@@ -746,6 +746,9 @@ def main():
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment