feat(identity): confirm the email address with a six-digit code from the message

This commit is contained in:
shira committed 2026-10-10 00:52:46 +03:00
1 parent c94434cd09
commit d365a05c96
87 files changed
+4764 -224

No files matched your search

@@ -33,6 +33,11 @@ func TestNotificationSubjectMigrations(t *testing.T) {
if _, err := migrator.Up(ctx); err != nil {
t.Fatalf("Up() error = %v", err)
}
// Migration 00046 (verification codes) is newer than the subject migration
// under test. Roll it back first, so the rollback checks below act on 00045.
if result, err := migrator.DownOne(ctx); err != nil || result.Version != 46 {
t.Fatalf("roll back the newest migration: result %+v, error = %v; want migration 46", result, err)
}
now := time.Date(2026, 10, 9, 12, 0, 0, 0, time.UTC)
userID, deliveryID, invitationID, organizationID := uuid.New(), uuid.New(), uuid.New(), uuid.New()