fix(auth): 内测期间关闭公开注册,仅保留已有账号登录 - #327
Conversation
公开注册、注册发码和验证码自动建号都会在内测阶段误开账号。登录入口保留,测试账号由运维预置。 Fixes 1024XEngineer#326 Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Reviewed the fixed PR diff across the registration/authentication backend paths and the frontend login entry points. The change consistently blocks public registration, registration-purpose verification codes, and unknown-account code-login auto-provisioning while preserving existing-account login flows and routing the legacy register query to login.
Static Python compilation and git diff --check passed. The focused pytest suites could not run because pytest is not installed in the environment; the affected frontend suites could not run because dependencies are absent and vitest is unavailable.
oxfmt requires the login helper line to stay on one line. This unblocks Frontend CI format:check on 1024XEngineer#327. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
POST /auth/register、purpose=register发码、验证码登录自动建号。/?account=register落到登录。已有账号的密码/验证码登录保留。Fixes #326
变更
POST /auth/register返回「内测期间暂不开放注册」send-code拒绝purpose=registerlogin-by-code对未知邮箱返回「账号不存在」,不再自动建号Test plan
POST /auth/register返回内测关闭文案,不创建用户purpose=register发码被拒绝且不发邮件/?account=register打开登录面板Made with Cursor