We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62ab30f commit 2cbba2aCopy full SHA for 2cbba2a
1 file changed
backend/open_webui/models/auths.py
@@ -146,7 +146,11 @@ def authenticate_user(
146
def authenticate_user_by_api_key(
147
self, api_key: str, db: Optional[Session] = None
148
) -> Optional[UserModel]:
149
- log.info(f"authenticate_user_by_api_key: ...{api_key[-4:]}" if api_key else "authenticate_user_by_api_key: <empty>")
+ log.info(
150
+ f"authenticate_user_by_api_key: ...{api_key[-4:]}"
151
+ if api_key
152
+ else "authenticate_user_by_api_key: <empty>"
153
+ )
154
# if no api_key, return None
155
if not api_key:
156
return None
0 commit comments