fix: emails used for recovery only, not notifications (notifications coming later)
This commit is contained in:
parent
4e7fdfa07c
commit
eb3ef7745f
|
|
@ -114,7 +114,7 @@
|
||||||
|
|
||||||
<h3>Register</h3>
|
<h3>Register</h3>
|
||||||
<div class="endpoint"><span class="method post">POST</span><span class="path">/account/register</span></div>
|
<div class="endpoint"><span class="method post">POST</span><span class="path">/account/register</span></div>
|
||||||
<p class="endpoint-desc">Create a new account. Email is optional — used only for recovery and alerts.</p>
|
<p class="endpoint-desc">Create a new account. Email is optional — used only for account recovery.</p>
|
||||||
<div class="cb">
|
<div class="cb">
|
||||||
<div class="cb-header"><span class="cb-lang">json — request body</span></div>
|
<div class="cb-header"><span class="cb-lang">json — request body</span></div>
|
||||||
<pre>{ <span class="k">"email"</span>: <span class="s">"you@example.com"</span> } <span class="c">// optional</span></pre>
|
<pre>{ <span class="k">"email"</span>: <span class="s">"you@example.com"</span> } <span class="c">// optional</span></pre>
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<!-- Optional email -->
|
<!-- Optional email -->
|
||||||
<div class="mt-6 pt-5 border-t border-gray-800">
|
<div class="mt-6 pt-5 border-t border-gray-800">
|
||||||
<label class="block text-xs text-gray-500 uppercase tracking-wider mb-1">Email <span class="text-gray-600 normal-case">(optional)</span></label>
|
<label class="block text-xs text-gray-500 uppercase tracking-wider mb-1">Email <span class="text-gray-600 normal-case">(optional)</span></label>
|
||||||
<p class="text-xs text-gray-600 mb-3">Used for account recovery and uptime alerts. Never shared.</p>
|
<p class="text-xs text-gray-600 mb-3">Used for account recovery only. Never shared.</p>
|
||||||
<input id="email-input" type="email" placeholder="you@example.com"
|
<input id="email-input" type="email" placeholder="you@example.com"
|
||||||
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-gray-100 placeholder-gray-600 focus:outline-none focus:border-blue-500 text-sm">
|
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-gray-100 placeholder-gray-600 focus:outline-none focus:border-blue-500 text-sm">
|
||||||
<div class="flex gap-2 mt-3">
|
<div class="flex gap-2 mt-3">
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ export const account = new Elysia({ prefix: "/account" })
|
||||||
};
|
};
|
||||||
}, {
|
}, {
|
||||||
body: t.Object({
|
body: t.Object({
|
||||||
email: t.Optional(t.String({ format: "email", description: "Optional. Used for recovery and alerts." })),
|
email: t.Optional(t.String({ format: "email", description: "Optional. Used for account recovery only." })),
|
||||||
}),
|
}),
|
||||||
detail: { summary: "Create account", tags: ["account"] },
|
detail: { summary: "Create account", tags: ["account"] },
|
||||||
})
|
})
|
||||||
|
|
@ -51,7 +51,7 @@ export const account = new Elysia({ prefix: "/account" })
|
||||||
return { ok: true };
|
return { ok: true };
|
||||||
}, {
|
}, {
|
||||||
body: t.Object({
|
body: t.Object({
|
||||||
email: t.Optional(t.String({ description: "Email for recovery and notifications" })),
|
email: t.Optional(t.String({ description: "Email for account recovery only." })),
|
||||||
}),
|
}),
|
||||||
detail: { summary: "Update account email", tags: ["account"] },
|
detail: { summary: "Update account email", tags: ["account"] },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue