Skip to content
Snippets Groups Projects
Commit 4ba395e2 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not duplicate groups in user manager

ref #160
parent 2fe3e064
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment