Files
chatballs/apps/backend/hub_platform/identity/apps.py
T
AndreyandClaude Opus 4.8 08c5d5a0c1 ♻️ refactor(events): send password-reset email via transactional outbox (#6)
- add an event-type -> handler registry; the worker dispatches outbox events
  to registered handlers (with retry/dead-letter already in place)
- password-reset request now enqueues an outbox event instead of sending mail
  synchronously in the request (non-blocking, retryable, less timing leak)
- move email building into identity.emails; identity handler sends on dispatch
- tests cover enqueue (no sync mail), non-enumeration, and handler delivery

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 18:53:06 +03:00

12 lines
361 B
Python

from django.apps import AppConfig
class IdentityConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
label = "identity"
name = "hub_platform.identity"
verbose_name = "Identity and platform core"
def ready(self) -> None:
from hub_platform.identity import event_handlers # noqa: F401 (register outbox handlers)