mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
Revert "fix invitation link sign in logic"
This reverts commit 30e5308cb3
.
This commit is contained in:
parent
30e5308cb3
commit
5eaa832300
3 changed files with 14 additions and 13 deletions
|
@ -7588,8 +7588,6 @@ async def onboarding(invite_link: str):
|
|||
- Pass in user_email if set
|
||||
"""
|
||||
global prisma_client, master_key, general_settings
|
||||
from litellm.proxy.management_helpers.ui_session_handler import UISessionHandler
|
||||
|
||||
if master_key is None:
|
||||
raise ProxyException(
|
||||
message="Master Key not set for Proxy. Please set Master Key to use Admin UI. Set `LITELLM_MASTER_KEY` in .env or set general_settings:master_key in config.yaml. https://docs.litellm.ai/docs/proxy/virtual_keys. If set, use `--detailed_debug` to debug issue.",
|
||||
|
@ -7690,9 +7688,11 @@ async def onboarding(invite_link: str):
|
|||
)
|
||||
|
||||
litellm_dashboard_ui += "?token={}&user_email={}".format(jwt_token, user_email)
|
||||
return UISessionHandler.generate_authenticated_redirect_response(
|
||||
redirect_url=litellm_dashboard_ui, jwt_token=jwt_token
|
||||
)
|
||||
return {
|
||||
"login_url": litellm_dashboard_ui,
|
||||
"token": jwt_token,
|
||||
"user_email": user_email,
|
||||
}
|
||||
|
||||
|
||||
@app.post("/onboarding/claim_token", include_in_schema=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue