Verified Commit 05671f24 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

signon: optimize _signon_auto_bind() call



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 751ae4b0
Pipeline #217622 passed with stage
in 2 minutes and 41 seconds
......@@ -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
......
Supports Markdown
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