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 16.68% 1375 / 8240
🔵 Statements 16.6% 1435 / 8643
🔵 Functions 14.64% 292 / 1994
🔵 Branches 13.6% 632 / 4646
File CoverageNo changed files found.
Generated in workflow #1259 for commit 2e5719a 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_2e5719a25873299e1bd98177be8a98237b29778c

🕒 Time: 2026-07-05 22:28:34 (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_2e5719a25873299e1bd98177be8a98237b29778c

🕒 Time: 2026-07-05 22:33:15 (UTC+8)

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.

1 participant