0001-auth_oidc-ignore-email-case-when-linking-existing-us.patch
src/authentic2_auth_oidc/backends.py | ||
---|---|---|
257 | 257 |
if provider.strategy == models.OIDCProvider.STRATEGY_CREATE: |
258 | 258 |
try: |
259 | 259 |
if app_settings.A2_EMAIL_IS_UNIQUE and email: |
260 |
user = User.objects.get(email=email) |
|
260 |
user = User.objects.get(email__iexact=email)
|
|
261 | 261 |
elif provider.ou and provider.ou.email_is_unique: |
262 |
user = User.objects.get(ou=provider.ou, email=email) |
|
262 |
user = User.objects.get(ou=provider.ou, email__iexact=email)
|
|
263 | 263 |
linked = True |
264 | 264 |
except User.DoesNotExist: |
265 | 265 |
pass |
266 |
- |