Enhance user registration and profile management: Update registration API to include bio, character class, and avatar fields. Implement validation for character class and improve error messages. Refactor registration page to support multi-step form with avatar upload and additional profile customization options, enhancing user experience during account creation.

This commit is contained in:
Julien Froidefond
2025-12-10 05:54:06 +01:00
parent 95e580aff6
commit 125e9b345d
5 changed files with 688 additions and 99 deletions

View File

@@ -88,7 +88,7 @@ export async function PUT(request: Request) {
}
// Validation bio
if (bio !== undefined) {
if (bio !== undefined && bio !== null) {
if (typeof bio !== "string") {
return NextResponse.json(
{ error: "La bio doit être une chaîne de caractères" },