P1 flow fix: register makes a solo user by default, collective creation is an opt-in flag, post-login menu for collective-less accounts
This commit is contained in:
parent
2665f43cc4
commit
2a3a1d79a1
15 changed files with 614 additions and 24 deletions
|
|
@ -51,7 +51,8 @@ function parseRegister(value: unknown): RegisterInput {
|
|||
const username = requireUsername(body.username);
|
||||
const email = optionalEmail(body.email);
|
||||
return {
|
||||
workspaceName: requireString(body.workspaceName, "workspaceName").trim().slice(0, 100),
|
||||
// Collectives opt-in: no name => solo account (personal workspace).
|
||||
workspaceName: optionalString(body.workspaceName, "workspaceName")?.trim().slice(0, 100),
|
||||
username,
|
||||
password: requireString(body.password, "password"),
|
||||
displayName: (optionalString(body.displayName, "displayName") ?? username).trim().slice(0, 100),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue