Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
contributors.debian.org
Commits
05671f24
Verified
Commit
05671f24
authored
Jan 10, 2021
by
Mattia Rizzolo
Browse files
signon: optimize _signon_auto_bind() call
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
751ae4b0
Pipeline
#217622
passed with stage
in 2 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
signon/middleware.py
View file @
05671f24
...
...
@@ -88,7 +88,8 @@ class SignonMiddleware:
# Try to auto_bind identities if needed.
if
getattr
(
settings
,
"SIGNON_AUTO_BIND"
,
False
):
self
.
_signon_auto_bind
(
request
)
if
any
(
x
.
person
is
None
for
x
in
request
.
signon_identities
.
values
()):
self
.
_signon_auto_bind
(
request
)
return
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment