From 0813737f1b6329205d728148a8d9ef8bf023e6fa Mon Sep 17 00:00:00 2001 From: kyx236 Date: Tue, 3 Feb 2026 07:32:52 +0800 Subject: [PATCH] fix(auth): remove username from password verification payload and fix proxy refresh handler - Remove redundant username field from password verification payload in CodexAPIAuth - Update proxy refresh button to use arrow function for proper event handling - Simplify authentication flow by eliminating unnecessary email parameter in password verification request --- backend/internal/auth/codex_api.go | 1 - frontend/src/pages/CodexProxyConfig.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/internal/auth/codex_api.go b/backend/internal/auth/codex_api.go index 16961d2..922f1bb 100644 --- a/backend/internal/auth/codex_api.go +++ b/backend/internal/auth/codex_api.go @@ -492,7 +492,6 @@ func (c *CodexAPIAuth) ObtainAuthorizationCode() (string, error) { verifyHeaders["OpenAI-Sentinel-Token"] = c.getSentinelHeader("password_verify") passwordPayload := map[string]string{ - "username": c.email, "password": c.password, } diff --git a/frontend/src/pages/CodexProxyConfig.tsx b/frontend/src/pages/CodexProxyConfig.tsx index c705c48..33b49cd 100644 --- a/frontend/src/pages/CodexProxyConfig.tsx +++ b/frontend/src/pages/CodexProxyConfig.tsx @@ -435,7 +435,7 @@ export default function CodexProxyConfig() {