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
2ae3bec3
Commit
2ae3bec3
authored
Sep 28, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] Change user public key length to 5000, fixed #631
parent
da5b9be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
api.py
apps/perms/api.py
+0
-1
user.py
apps/users/models/user.py
+1
-1
No files found.
apps/perms/api.py
View file @
2ae3bec3
...
...
@@ -51,7 +51,6 @@ class AssetPermissionViewSet(viewsets.ModelViewSet):
assets
.
extend
(
list
(
instance
.
assets
.
all
()))
asset_groups
.
extend
(
list
(
instance
.
asset_groups
.
all
()))
system_users
.
extend
(
list
(
instance
.
system_users
.
all
()))
print
(
'Run'
)
associate_system_users_and_assets
(
system_users
,
assets
,
asset_groups
)
def
perform_create
(
self
,
serializer
):
...
...
apps/users/models/user.py
View file @
2ae3bec3
...
...
@@ -39,7 +39,7 @@ class User(AbstractUser):
enable_otp
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Enable OTP'
))
secret_key_otp
=
models
.
CharField
(
max_length
=
16
,
blank
=
True
)
_private_key
=
models
.
CharField
(
max_length
=
5000
,
blank
=
True
,
verbose_name
=
_
(
'ssh private key'
))
_public_key
=
models
.
CharField
(
max_length
=
1
000
,
blank
=
True
,
verbose_name
=
_
(
'ssh public key'
))
_public_key
=
models
.
CharField
(
max_length
=
5
000
,
blank
=
True
,
verbose_name
=
_
(
'ssh public key'
))
comment
=
models
.
TextField
(
max_length
=
200
,
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
is_first_login
=
models
.
BooleanField
(
default
=
False
)
date_expired
=
models
.
DateTimeField
(
default
=
date_expired_default
,
blank
=
True
,
null
=
True
,
...
...
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