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:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user