Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
- Added InviteCode and InviteCodeUse entity imports to auth.service.ts and auth.module.ts - Added inviteCode field to RegisterDto as optional string - Implemented registration mode check (invite_only vs public) - Added invite code validation logic at registration: * Check if code exists and is active * Validate expiration date * Verify usage limit not exceeded - Record invite code usage after successful registration: * Increment usage counter * Create invite_code_uses record with user details * Add audit logging for invite code usage - Registration now enforces REGISTRATION_MODE environment variable - Users get clear error messages for invalid/expired/used-up invite codes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>