From 48683f7b93ab03172b693d4c8fdaacef591356ed Mon Sep 17 00:00:00 2001 From: sophie <16087569+sophie_liang@user.noreply.gitee.com> Date: Thu, 14 May 2026 16:54:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=94=B9=E4=B8=BA=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.env | 4 ++-- frontend/src/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/.env b/backend/.env index ed979b96..13e498b2 100644 --- a/backend/.env +++ b/backend/.env @@ -5,9 +5,9 @@ INTEGRATION_API_KEY=I76mSQZQEPYU6TubMhjh-xLsCgWC0gSIg5MncJFHFCvqvVlg-gZ_BvwO_UEL # 是否启用 JWT 认证 AUTH_JWT_REQUIRED=true -AUTH_LOGIN_MODE=casdoor +# AUTH_LOGIN_MODE=casdoor # 如果需要用户密码登录,修改该值为password -# AUTH_LOGIN_MODE=password +AUTH_LOGIN_MODE=password # Casdoor JWT 验签三件套 AUTH_JWT_ISSUER=http://ai.well-trust.com:8870 diff --git a/frontend/src/config.ts b/frontend/src/config.ts index 3bc59950..21b7019a 100644 --- a/frontend/src/config.ts +++ b/frontend/src/config.ts @@ -4,7 +4,7 @@ export const config = { // Login mode switch: // - 'casdoor': submit username/password to backend Casdoor password-login API. // - 'password': submit to legacy local /api/user/login. - loginMode: 'casdoor', + loginMode: 'password', casdoor: { enabled: true, authorizeApi: '/api/user/casdoor/authorize-url',