From b496f29a43be102c5c7b5c79cbbad829970796bb Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 14 Jun 2026 17:15:56 +0200 Subject: [PATCH] =?UTF-8?q?fix=20:=20Cr=C3=A9ation=20du=20compte=20courant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({