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> |
||
|---|---|---|
| .. | ||
| application | ||
| domain | ||
| i18n | ||
| infrastructure | ||
| scripts | ||
| app.module.ts | ||
| main.ts | ||