feat(login): 未绑定 Owner 时说明原因和绑定方式

This commit is contained in:
Lemon-miaow committed 2026-10-02 19:38:36 +08:00
1 parent 9139c5bd35
commit 2e4f118939
18 files changed
+579 -20

No files matched your search

+4
View File
@@ -966,6 +966,10 @@ async function handlePublic(ctx: RequestContext): Promise<boolean> {
});
return true;
}
// The mock install always has its Owner; the unbound page is covered by Login.test.tsx.
case "GET auth/owner-status":
sendJSON(ctx.res, 200, { owner_bound: true });
return true;
case "POST auth/email/start": {
const body = await readJSON<{ email?: string }>(ctx.req);
if (!body.email || !body.email.includes("@")) {