From eb3ef7745f0a2f5d58caa0217fa75450fb776de9 Mon Sep 17 00:00:00 2001 From: M1 Date: Mon, 16 Mar 2026 14:59:17 +0400 Subject: [PATCH] fix: emails used for recovery only, not notifications (notifications coming later) --- apps/web/src/dashboard/docs.html | 2 +- apps/web/src/dashboard/index.html | 2 +- apps/web/src/routes/auth.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/dashboard/docs.html b/apps/web/src/dashboard/docs.html index 649d8e3..2091e9e 100644 --- a/apps/web/src/dashboard/docs.html +++ b/apps/web/src/dashboard/docs.html @@ -114,7 +114,7 @@

Register

POST/account/register
-

Create a new account. Email is optional — used only for recovery and alerts.

+

Create a new account. Email is optional — used only for account recovery.

json — request body
{ "email": "you@example.com" }  // optional
diff --git a/apps/web/src/dashboard/index.html b/apps/web/src/dashboard/index.html index 534318f..8d103ae 100644 --- a/apps/web/src/dashboard/index.html +++ b/apps/web/src/dashboard/index.html @@ -63,7 +63,7 @@
-

Used for account recovery and uptime alerts. Never shared.

+

Used for account recovery only. Never shared.

diff --git a/apps/web/src/routes/auth.ts b/apps/web/src/routes/auth.ts index 0ecb82d..749a8d2 100644 --- a/apps/web/src/routes/auth.ts +++ b/apps/web/src/routes/auth.ts @@ -36,7 +36,7 @@ export const account = new Elysia({ prefix: "/account" }) }; }, { 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"] }, }) @@ -51,7 +51,7 @@ export const account = new Elysia({ prefix: "/account" }) return { ok: true }; }, { 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"] }, });