mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) dependencies in /sso/key/generate
This commit is contained in:
parent
cfa69c3184
commit
9780589173
1 changed files with 4 additions and 1 deletions
|
@ -2971,7 +2971,10 @@ async def google_login(request: Request):
|
|||
@router.post(
|
||||
"/login", include_in_schema=False
|
||||
) # hidden since this is a helper for UI sso login
|
||||
async def login(username: str = Form(...), password: str = Form(...)):
|
||||
async def login(request: Request):
|
||||
form = await request.form()
|
||||
username = str(form.get("username"))
|
||||
password = form.get("password")
|
||||
ui_username = os.getenv("UI_USERNAME")
|
||||
ui_password = os.getenv("UI_PASSWORD")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue