Skip to content

Registration should require fullName to match User model #2770

@tristanwork

Description

@tristanwork

Parent bounty: #743

Bug

The Prisma User model requires fullName, but the registration schema only accepts email, password, and role. registerUser() also omits fullName from the returned user payload. When the auth flow is wired to Prisma, registration payloads accepted by the API will be missing a required user field.

Expected

  • Registration payload validation requires a non-empty fullName.
  • registerUser() carries the validated fullName into the returned user payload.
  • Tests cover rejection of missing fullName and preservation of a valid name.

Scope

Keep the fix limited to registration validation/service behavior and focused API tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions