mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 09:24:46 +00:00
feat(pwa): signup profile fields via @profullstack/profile (#256)
The create-account form (/?mode=up) asks for first/last name (required) and company domain, job title, LinkedIn (optional) beside the email box, rendered by renderProfileFields. /auth/register validates them with validateProfile before the user exists and stores them with saveSignupProfile in a new user_profiles table keyed by users.id. GET/PUT/PATCH /api/v1/me/profile (session cookie) and a "Your details" card on /settings. Sign-in, passkey and CoinPay are unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ff0c903c6d
commit
50eb8ac30d
10 changed files with 230 additions and 6 deletions
|
|
@ -14,6 +14,7 @@ import { apiKeysRouter } from "./routes/apikeys.mjs";
|
|||
import { opencredsRouter } from "./routes/opencreds.mjs";
|
||||
import { cliRouter } from "./routes/cli.mjs";
|
||||
import { pagesRouter } from "./routes/pages.mjs";
|
||||
import { profileRouter } from "./lib/profile.mjs";
|
||||
import { descriptor } from "@profullstack/footer";
|
||||
import { RING_FOOTER_OPTIONS, startRingFooterRefresh } from "./lib/ring-footer.mjs";
|
||||
|
||||
|
|
@ -67,6 +68,7 @@ app.use(credshareRouter); // /api/credshare/* (session or lsk_ Bearer)
|
|||
app.use(apiKeysRouter); // /api/keys (session or a person's lsk_ key; never a machine key)
|
||||
app.use(opencredsRouter); // /api/opencreds/* — personal vault sync (session or lsk_ Bearer)
|
||||
app.use(cliRouter); // /cli/authorize, /cli/token, /api/me
|
||||
app.use(profileRouter); // /api/v1/me/profile (session cookie)
|
||||
app.use(pagesRouter); // /dashboard, /teams/*, /settings
|
||||
|
||||
app.use((req, res) => res.status(404).type("html").send(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue