presseportale/tests/Feature
Kevin Adametz 94cb209a9f WS-6: E-Mail-Verifizierung, Auth-Flow-Fixes & Legacy-Rollen-Sicherheitsfix
E-Mail-Verifizierung (Entscheidung 15.06.):
- User implementiert MustVerifyEmail; Registrierung legt inaktives, rollenloses
  Konto an und leitet auf die Danke-/Notice-Seite; Registered-Event versendet die
  Verifizierungsmail. Bestätigter Link aktiviert das Konto + vergibt customer-Rolle
  (ActivateUserAfterVerification). Backfill-Migration setzt email_verified_at für
  alle Bestands-User (sonst würde die verified-Middleware ~59k aktive Legacy-User
  aussperren). Seeder-User verifiziert.

Auth-Flow-Korrekturen:
- Magic-Link-Consume: rollensicherer Redirect ohne intended() (Customer landete
  sonst per stale intended=/dashboard im 403-Admin-Bereich).
- Guest-Redirect (bootstrap/app.php) rollen-/verifizierungsbewusst statt fix
  /dashboard – schließt die 403-Sackgasse auf /login und /register.
- Logout auf der Notice-Seite via echtes POST-Formular statt Livewire-Action
  (behebt 419 beim Session-Invalidate).
- Magic-Link-Anforderung über eigenes Modal mit separater E-Mail-Eingabe.
- Unverifizierte Login-Versuche landen auf der Notice-Seite.

Sicherheitsfix Legacy-Rollen:
- UserImporter mappte Alt-Gruppe 2 (Self-Publisher) auf editor (= Admin-Zugriff).
  Mapping auf customer korrigiert; Daten-Migration stuft die 65.950 fälschlichen
  Legacy-Editoren auf customer herab. Echte admin/api-only bleiben unberührt.

Tests: Registration, EmailVerification, Authentication (Guest-Redirect),
MagicLinkLogin (Modal/Redirect/Regression), Legacy-Import (Gruppen-Mapping).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-16 08:16:41 +00:00
..
Admin User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
Api/V1 Phase 9E (Abschluss): Checkout-Flows und Plan-Kontingent statt Quota-Stub 2026-06-12 12:10:32 +00:00
Auth WS-6: E-Mail-Verifizierung, Auth-Flow-Fixes & Legacy-Rollen-Sicherheitsfix 2026-06-16 08:16:41 +00:00
Billing User-Panel-Restarbeiten: PM-Guard, Profil-Rework, USt-ID-Prüfung, Buchungspflicht-Adresse 2026-06-12 14:36:18 +00:00
Categories 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
Customer 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
Settings 29-05-2026 Optimierungen Fixes am Code 2026-05-29 12:42:05 +00:00
Web WS-1: Canonical- & OpenGraph-Meta zentral im Web-Layout 2026-06-15 10:03:15 +00:00
ApiAccessSecurityAndLoggingTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
ApiDocumentationTest.php 29-05-2026 Optimierungen Fixes am Code 2026-05-29 12:42:05 +00:00
ApiUsageReporterTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
CustomerCompanyContextTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
CustomerPortalTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
CustomerPressKitCreatePhase8eTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
CustomerPressKitIndexPhase8eTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
CustomerPressReleaseCreatePhase7Test.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
CustomerPressReleaseEditPhase7Test.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
CustomerPressReleaseSchedulingFormTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
CustomerProfileSecurityTest.php PM-Vorschau: Firma & Pressekontakt zusammengeführt, Sprache als Badge am Portal 2026-06-12 16:11:57 +00:00
DashboardTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
DomainAssetContextTest.php Multi-Domain-Asset-Infrastruktur: geteilte Vite-Konfiguration und DomainAssetContext 2026-06-12 08:16:09 +00:00
ExampleTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
HasUniqueSlugTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
LegacyApiAccessLogAnalyzerTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
LegacyApiCustomerReporterTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
LegacyInvoiceArchiveCommandTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
LegacyUserProfileImportTest.php WS-6: E-Mail-Verifizierung, Auth-Flow-Fixes & Legacy-Rollen-Sicherheitsfix 2026-06-16 08:16:41 +00:00
LegacyVerifyCommandTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
LocalFontsTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
MigrateLegacyMediaCommandTest.php 19-05-2026 Rebrand Pressekonto, Hub-Flux UI und Legacy-Media-Migration 2026-05-19 16:36:13 +00:00
PanelConsolidationTest.php Buchungs-Seite: Feinschliff nach Review 2026-06-12 13:30:06 +00:00
PressReleaseAttachmentsManagerTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
PressReleaseBlacklistTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
PressReleaseClassificationJobTest.php Phase 9 Block 1: Gelb-Routing Direkt-Live, Slot-Verbrauch bei Veroeffentlichung, Submit-Gate 2026-06-12 09:47:06 +00:00
PressReleaseClassificationModelTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleaseContactWarningPhase8cTest.php 22-05-2026 Optimierung der User und Admin Panels 2026-05-22 11:18:59 +02:00
PressReleaseContentScoreTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleaseCreateCompanyGuardTest.php User-Panel-Restarbeiten: PM-Guard, Profil-Rework, USt-ID-Prüfung, Buchungspflicht-Adresse 2026-06-12 14:36:18 +00:00
PressReleaseHtmlSanitizerTest.php Verlinkung & Backlinks: systemseitige rel-Auszeichnung (Decision-Update 11.06.) 2026-06-12 15:24:20 +00:00
PressReleaseImageLicenseTest.php KI-generierte Bilder: eigener Lizenztyp, Anbieter-Bestätigung, Kennzeichnung 2026-06-12 16:04:12 +00:00
PressReleaseIndexPhase8bTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleasePhase7SchemaTest.php create PM v0.5 2026-05-20 19:14:39 +02:00
PressReleasePlaceholderTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleasePreviewTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
PressReleasePublishModalPhase8iTest.php Phase 9E (Abschluss): Checkout-Flows und Plan-Kontingent statt Quota-Stub 2026-06-12 12:10:32 +00:00
PressReleaseQuotaTest.php Phase 9E (Abschluss): Checkout-Flows und Plan-Kontingent statt Quota-Stub 2026-06-12 12:10:32 +00:00
PressReleaseReclassifyTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleaseSchedulingTest.php Phase 9 Block 1: Gelb-Routing Direkt-Live, Slot-Verbrauch bei Veroeffentlichung, Submit-Gate 2026-06-12 09:47:06 +00:00
PressReleaseShowPhase8aTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
PressReleaseWorkflowTest.php User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline 2026-06-12 08:30:13 +00:00
SyncCompanyLogosTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00
SyncPressReleaseImagesTest.php 12-05-2026 Frontend dev 2026-05-12 18:32:33 +02:00