Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
d4081353
Commit
d4081353
authored
Feb 17, 2018
by
Robin Sonnabend
Browse files
Do not duplicate groups in user manager
ref
#160
parent
f156107e
Changes
1
Show whitespace changes
Inline
Side-by-side
auth.py
View file @
d4081353
...
...
@@ -43,7 +43,7 @@ class UserManager:
def
login
(
self
,
username
,
password
,
permanent
=
False
):
for
backend
in
self
.
backends
:
if
backend
.
authenticate
(
username
,
password
):
groups
=
backend
.
groups
(
username
,
password
)
groups
=
sorted
(
list
(
set
(
backend
.
groups
(
username
,
password
)
)))
return
User
(
username
,
groups
,
obsolete
=
backend
.
obsolete
,
permanent
=
permanent
)
return
None
...
...
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