Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,6 @@ def auth_user_registration_role_jmespath(self) -> str:
def auth_remote_user_env_var(self) -> str:
return current_app.config["AUTH_REMOTE_USER_ENV_VAR"]

@property
def auth_username_ci(self):
"""Get the auth username for CI."""
return current_app.config.get("AUTH_USERNAME_CI", True)

@property
def auth_user_registration(self):
"""Will user self registration be allowed."""
Expand Down Expand Up @@ -1435,12 +1430,6 @@ def find_user(self, username=None, email=None):
"""Find user by username or email."""
if username:
try:
if self.auth_username_ci:
return self.session.scalars(
select(self.user_model).where(
func.lower(self.user_model.username) == func.lower(username)
)
).one_or_none()
return self.session.scalars(
select(self.user_model).where(
func.lower(self.user_model.username) == func.lower(username)
Expand Down