feat(console): user-import wizard defaults to auto password policy (tracks framework#3236)#2701
Merged
Merged
Conversation
…icy (tracks framework#3236) The "Sign-in setup for imported users" selector in the identity import wizard gains an "Automatic (recommended)" option, now the default (was "No password"). `auto` lets the server decide per row — reachable users get an invitation (email/SMS), unreachable ones get a one-time password shown once — so the wizard works with or without an email/SMS service, and the one-time-password reveal surfaces only the rows that actually fell back (not the whole batch, as under `temporary`). - `IdentityPasswordPolicy` gains `'auto'`; the wizard's default state and the send-time policy ref default to `'auto'`. - POLICY_FALLBACKS + en/zh i18n gain `auto` label/hint; `none` drops its "(recommended)" marker and is relabeled "No password (identity only)". - The batch adapter (splitting, merge, one-time-password reveal) is policy-agnostic, so no adapter changes were needed — `auto` fallback rows carry `temporaryPassword` exactly like `temporary` rows. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
跟进 framework#3236(objectstack-ai/objectstack#3307)。
改动
Console 「导入用户」向导的「登录方式」选择器新增 Automatic (recommended) 选项,并设为默认(原为「不设密码」)。
auto由服务端逐行决定:可触达的用户收到邀请(邮件 / 短信),无法触达的用户拿一次性密码(结果页只显示一次)——因此无论是否配置邮件/短信服务都能用,而一次性密码揭示区现在只列出真正回退的行(而非temporary下的整批)。IdentityPasswordPolicy增加'auto';向导默认 state 与发送时的 policy ref 默认改为'auto'。POLICY_FALLBACKS+ en/zh i18n 增加auto标签/提示;none去掉「(推荐)」标记,改为「No password (identity only)」。auto回退行携带temporaryPassword的方式和temporary行完全一致。向导发送
passwordPolicy: 'auto',只有后端具备 framework#3236 才认识该值(旧后端会 400invalid_request)。本 PR 应在 framework#3236 发布后再合并,避免「新 Console + 旧后端」的部署组合。测试
identityImport.test.ts新增 1 项(默认发送auto),共 12 项全绿。@object-ui/app-shell+@object-ui/i18ntype-check 通过;eslint 无 error。🤖 Generated with Claude Code