Commit 4ba395e2 authored by Robin Sonnabend's avatar Robin Sonnabend

Do not duplicate groups in user manager

ref #160
parent 2fe3e064
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment