xpeditis2.0/apps/backend/src/application/auth
David c312e7901e fix(auth): normalize email to lowercase on register/login + rollback orphaned org
L'email n'etait pas normalise, or la contrainte chk_users_email exige des
minuscules. Un email avec majuscules faisait echouer l'INSERT utilisateur APRES
la creation de l'organisation (flux non transactionnel), laissant une org
orpheline -> 'An organization with this name already exists' aux tentatives
suivantes.

- register/login: email.trim().toLowerCase()
- register: rollback de l'organisation nouvellement creee si la creation de
  l'utilisateur echoue (anti-orphelin)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 16:24:57 +02:00
..
auth.module.ts fix logs 2026-06-13 12:17:06 +02:00
auth.service.ts fix(auth): normalize email to lowercase on register/login + rollback orphaned org 2026-07-03 16:24:57 +02:00
jwt.strategy.ts fix security 2026-06-12 11:33:37 +02:00