Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
b0821d8c
Commit
b0821d8c
authored
Oct 29, 2018
by
Lukas Burgey
Browse files
Cleanup user
parent
7c06120d
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/users.py
View file @
b0821d8c
...
...
@@ -84,6 +84,12 @@ class User(AbstractUser):
items
.
append
(
item
)
return
items
# we hide deleted keys here
# the full list of ssh keys is self._ssh_keys
@
property
def
ssh_keys
(
self
):
return
self
.
_ssh_keys
.
filter
(
deleted
=
False
)
@
property
def
credentials
(
self
):
return
{
...
...
@@ -96,6 +102,10 @@ class User(AbstractUser):
]
}
@
property
def
is_active_at_clients
(
self
):
return
self
.
_is_active
# returns the user as identified by userinfo and idp
# if the user does not exists
@
classmethod
...
...
@@ -158,16 +168,6 @@ class User(AbstractUser):
client
.
set_password
(
password
)
return
client
# we hide deleted keys here
# the full list of ssh keys is self._ssh_keys
@
property
def
ssh_keys
(
self
):
return
self
.
_ssh_keys
.
filter
(
deleted
=
False
)
@
property
def
is_active_at_clients
(
self
):
return
self
.
_is_active
def
__str__
(
self
):
name
=
''
...
...
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