Skip to content

Fro 2 inscription utilisateur#25

Merged
pierrick-fonquerne merged 3 commits intodevelopfrom
FRO-2-Inscription-utilisateur
Jan 8, 2026
Merged

Fro 2 inscription utilisateur#25
pierrick-fonquerne merged 3 commits intodevelopfrom
FRO-2-Inscription-utilisateur

Conversation

@pierrick-fonquerne
Copy link
Copy Markdown
Owner

No description provided.

- Add POST /api/auth/register endpoint with validation
- Implement Argon2id password hashing (OWASP recommended)
- Add password validation with CNIL rules (12+ chars, uppercase,
  lowercase, digit, special char)
- Add password strength scoring (Faible/Moyen/Fort/Très fort)
- Implement Result<T> pattern for clean error handling
- Add UserRepository with email/pseudo uniqueness checks
- Send welcome email on successful registration
- Add SQL migration for user audit columns (created_at, updated_at)

Unit tests: PasswordValidator, Argon2PasswordHasher, AuthService
Frontend:
- Add RegisterPage with success state and navigation
- Add RegisterForm with validation and API integration
- Add PasswordStrengthIndicator with CNIL criteria
- Add PasswordInput component with visibility toggle
- Add passwordValidation utility aligned with backend
- Add API client and authService
- Update Header with registration link
- Add CheckIcon and CircleIcon reusable components

Backend:
- Fix error response key (error -> message)
- Add ILogger to AuthService for email logging
- Fix pseudo MaxLength (50 -> 30)
- Make Program class partial for integration tests
- Add Microsoft.Extensions.Logging.Abstractions package

Tests (227 total):
- Add passwordValidation.test.ts (52 tests)
- Add PasswordStrengthIndicator.test.tsx (16 tests)
- Add RegisterForm.test.tsx (24 tests)
- Add RegisterPage.test.tsx (13 tests)
- Add AuthControllerIntegrationTests with Testcontainers (11 tests)
- Add accessibility tests with jest-axe (RGAA/WCAG)
- Update AuthServiceTests for fire-and-forget email

Infrastructure:
- Fix SQL scripts with plural table names
- Update docker-compose with PostgreSQL volume mount
- Update EmailTemplates with French text and gold color
- Replace basic light theme with immersive dark fantasy design
- Add gradient backgrounds and gold accent colors (#D4AF37)
- Include thematic emojis (castle, swords, shield icons)
- Add decorative borders and shadow effects on CTA buttons
- Translate all email content to French
- Use table-based layout for maximum email client compatibility
- Update unit tests to match French content
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
fantasyrealm-character-manager Ready Ready Preview, Comment Jan 8, 2026 8:50am

@pierrick-fonquerne pierrick-fonquerne merged commit b8ea159 into develop Jan 8, 2026
7 checks passed
@pierrick-fonquerne pierrick-fonquerne deleted the FRO-2-Inscription-utilisateur branch January 8, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant