feat: openid-login + avatar_url 修复
- 后端: 新增 /auth/openid-login 接口(调 CRMEB 补齐用户信息) - 后端: config.py 新增 crmeb_base_url / crmeb_api_key 配置 - 后端: api.ts 新增 openid-login 接口声明 - 前端: LoginPage 改为走 openid-login(openid 单参登录) - 前端: UserContext 修复 avatar_url 未映射导致头像不显示的问题
This commit is contained in:
@@ -32,7 +32,11 @@ class Settings(BaseSettings):
|
||||
max_file_size: int = 10 * 1024 * 1024 # 10MB
|
||||
|
||||
# CORS
|
||||
cors_origins: str = "*" # 多个域名用逗号分隔,如 https://a.com,https://b.com
|
||||
cors_origins: str = "*"
|
||||
|
||||
# CRMEB internal API
|
||||
crmeb_base_url: str = ""
|
||||
crmeb_api_key: str = ""
|
||||
|
||||
# Server
|
||||
host: str = "0.0.0.0"
|
||||
|
||||
Reference in New Issue
Block a user