Skip to content

Commit 95faa94

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): Skills文档邮箱注册API实现指导不清晰导致注册按钮状态异常 (issue_mnsbor79_tps3mh)
1 parent 8c4c0de commit 95faa94

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

config/source/skills/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: cloudbase-all-in-one
33
description: Unified CloudBase execution guide for all-in-one skill installs. Use this as the first entry point for CloudBase app tasks, especially existing applications that already contain TODOs, fixed pages, and active handlers.
4-
version: 2.16.2
4+
version: 2.16.3
55
alwaysApply: true
66
---
77

@@ -57,6 +57,11 @@ alwaysApply: true
5757
- If `loginMethods.usernamePassword !== true`, immediately call `manageAppAuth(action=\"patchLoginStrategy\", patch={ usernamePassword: true })`.
5858
- In code, use `auth.signUp({ username, password })` and `auth.signInWithPassword({ username, password })`.
5959
- Never use `signUpWithEmailAndPassword` or `signInWithEmailAndPassword` for these username-style account flows.
60+
- If the existing Web form already has `email`, `code`, `send code`, and `register` controls, repair those handlers in place. In bundler projects, install `@cloudbase/js-sdk` with npm instead of adding a CDN script.
61+
- For email OTP registration, the send-code action must call `auth.getVerification({ email })` and store the returned `verification_id` in component state.
62+
- The register action must use that stored `verification_id` plus the current code input to call `auth.verify({ verification_id, verification_code })`, then `auth.signUp({ email, verification_code, verification_token, ... })`.
63+
- The register button state should derive from the real form state: `verification_id` present, verification code present, and no in-flight loading.
64+
- Do not add a cloud function or detached helper file for this flow unless the task explicitly requires a backend hop.
6065
- Once readiness is confirmed, return to the active frontend handler and finish the real login/register flow.
6166

6267
3. Database and storage tasks:

0 commit comments

Comments
 (0)