From b9fe2cb2fb84bcc4ddb1e54d38c903879f96b19e Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Sat, 6 Dec 2025 17:17:47 -0800 Subject: [PATCH] Fix links + old login page deprecation message --- .../proxy/common_utils/html_forms/ui_login.py | 25 +++++++++++++++++++ litellm/proxy/proxy_server.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/common_utils/html_forms/ui_login.py b/litellm/proxy/common_utils/html_forms/ui_login.py index 5820f2b042..8478d41e47 100644 --- a/litellm/proxy/common_utils/html_forms/ui_login.py +++ b/litellm/proxy/common_utils/html_forms/ui_login.py @@ -1,10 +1,13 @@ import os +from litellm.proxy.utils import get_custom_url + url_to_redirect_to = os.getenv("PROXY_BASE_URL", "") server_root_path = os.getenv("SERVER_ROOT_PATH", "") if server_root_path != "": url_to_redirect_to += server_root_path url_to_redirect_to += "/login" +new_ui_login_url = get_custom_url("", "ui/login") html_form = f""" @@ -185,10 +188,32 @@ html_form = f""" margin-top: -12px; margin-bottom: 20px; }} + + .deprecation-banner {{ + background-color: #fee2e2; + border: 1px solid #ef4444; + color: #991b1b; + padding: 14px 16px; + border-radius: 6px; + margin-bottom: 20px; + font-size: 14px; + line-height: 1.5; + }} + + .deprecation-banner a {{ + color: #991b1b; + font-weight: 600; + text-decoration: underline; + }}
+
+ Deprecated: Logging in with username and password on this page is deprecated. + Please use the new login page instead. + This page will be dedicated to signing in via SSO in the future. +