mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
chore: print statement removed
This commit is contained in:
parent
1066096b33
commit
0aa4d305c7
@ -77,8 +77,6 @@ def get_http_authorization_cred(auth_header: str):
|
|||||||
def get_current_user(
|
def get_current_user(
|
||||||
auth_token: HTTPAuthorizationCredentials = Depends(bearer_security),
|
auth_token: HTTPAuthorizationCredentials = Depends(bearer_security),
|
||||||
):
|
):
|
||||||
|
|
||||||
print(auth_token)
|
|
||||||
# auth by api key
|
# auth by api key
|
||||||
if auth_token.credentials.startswith("sk-"):
|
if auth_token.credentials.startswith("sk-"):
|
||||||
return get_current_user_by_api_key(auth_token.credentials)
|
return get_current_user_by_api_key(auth_token.credentials)
|
||||||
|
Loading…
Reference in New Issue
Block a user