pahvalentines/backend/app/services/__init__.py
michael ce95d61796 feat: add server-side profanity filter with real-time validation
Add profanity detection using better-profanity library with:
- Real-time API validation during typing (500ms debounce)
- Defense-in-depth server-side validation on form submission
- Visual feedback with red borders and warning message
- Submit button disabled when profanity detected
- Fail-open behavior on API errors to not block users

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:29:58 -06:00

1 line
40 B
Python

"""Services package for PAH backend."""