diff --git a/backend/src/routes/auth.js b/backend/src/routes/auth.js index 9eb4ba7..b9b650f 100644 --- a/backend/src/routes/auth.js +++ b/backend/src/routes/auth.js @@ -45,7 +45,7 @@ router.post('/register', (req, res, next) => { // Auto-créer un compte courant pour le profil principal db.prepare( 'INSERT INTO comptes (user_id, nom, type, investisseur_id) VALUES (?,?,?,?)' - ).run(userId, 'Compte courant', 'compte_courant', invResult.lastInsertRowid); + ).run(userId, `Compte courant — ${fullName}`, 'compte_courant', invResult.lastInsertRowid); const token = signToken({ sub: userId, email: body.email }); res.status(201).json({