临时改为密码登录

This commit is contained in:
sophie committed 2026-05-14 16:54:34 +08:00
1 parent d168d67353
commit 48683f7b93
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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',