Skip to content

fix:split register methods from team sync mode#7230

Open
shortlight5980 wants to merge 1 commit into
labring:mainfrom
shortlight5980:debug
Open

fix:split register methods from team sync mode#7230
shortlight5980 wants to merge 1 commit into
labring:mainfrom
shortlight5980:debug

Conversation

@shortlight5980

Copy link
Copy Markdown
Collaborator

变更说明

拆分注册方式与团队同步模式配置,避免仅开启同步模式时登录页误展示注册入口;同时修复无找回密码/注册入口时登录页残留空占位的问题。

主要改动

register_method 仅作为邮箱/手机号注册方式使用,新增 teamMode 表示团队模式。
admin 配置适配停止向 register_method 写入 sync。
app 侧新增配置工具函数,兼容旧 register_method: ['sync']。
登录页、注册页、账户信息页、组织管理、成员表同步迁移判断逻辑。
补充同步模式与注册方式过滤的单测。

验证

pnpm --filter @fastgpt/app typecheck
pnpm --filter @fastgpt/admin typecheck
pnpm --filter @fastgpt/app test test/web/common/system/utils.test.ts
pnpm test

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 18.41% 1630 / 8853
🔵 Statements 18.4% 1711 / 9298
🔵 Functions 16.17% 341 / 2108
🔵 Branches 15.04% 757 / 5031
File CoverageNo changed files found.
Generated in workflow #1366 for commit eabc66f by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_eabc66f3b6804ce3b70fd64b084f9556e3079d51

🕒 Time: 2026-07-09 20:16:57 (UTC+8)

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_eabc66f3b6804ce3b70fd64b084f9556e3079d51

🕒 Time: 2026-07-09 20:16:11 (UTC+8)

@shortlight5980 shortlight5980 force-pushed the debug branch 2 times, most recently from 4fbb061 to 2e5719a Compare July 5, 2026 14:20
FinleyGe
FinleyGe previously approved these changes Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants