fix:split register methods from team sync mode#7230
Open
shortlight5980 wants to merge 1 commit into
Open
Conversation
Coverage Report
File CoverageNo changed files found. |
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-07-05 22:28:34 (UTC+8) |
|
✅ Build Successful - Preview fastgpt Image for this PR: 🕒 Time: 2026-07-05 22:33:15 (UTC+8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
拆分注册方式与团队同步模式配置,避免仅开启同步模式时登录页误展示注册入口;同时修复无找回密码/注册入口时登录页残留空占位的问题。
主要改动
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