[organization] Backward compatibility in backend when no email set
@@ -219,6 +219,7 @@ class AllowFirstUserDjangoBackend(django.contrib.auth.backends.ModelBackend):
ModelBackend.
"""
def authenticate(self, username=None, email=None, password=None):
+ if email is not None:
username = email
username = force_username_case(username)
request = None
