Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
proto3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
protokollsystem
proto3
Commits
fbbbd0d8
Commit
fbbbd0d8
authored
7 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Fix static user backend
parent
d4081353
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
auth.py
+3
-3
3 additions, 3 deletions
auth.py
with
3 additions
and
3 deletions
auth.py
+
3
−
3
View file @
fbbbd0d8
...
...
@@ -143,7 +143,7 @@ class StaticUserManager:
username
:
password
for
(
username
,
password
,
groups
)
in
users
}
self
.
group
s
=
{
self
.
group
_map
=
{
username
:
groups
for
(
username
,
password
,
groups
)
in
users
}
...
...
@@ -154,8 +154,8 @@ class StaticUserManager:
and
self
.
passwords
[
username
]
==
password
)
def
groups
(
self
,
username
,
password
=
None
):
if
username
in
self
.
group
s
:
yield
from
self
.
group
s
[
username
]
if
username
in
self
.
group
_map
:
yield
from
self
.
group
_map
[
username
]
def
all_groups
(
self
):
yield
from
list
(
set
(
group
for
group
in
groups
.
values
()))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment