- Magic-Link-Login übergibt bei aktiviertem 2FA an die 2FA-Challenge, statt sie zu umgehen (M1). - Bestätigungs-/Benachrichtigungs-Mails (Kontakt, Recht, Kündigung, Widerruf, Magic-Link) laufen als ShouldQueue+afterCommit über die Queue, damit die Response nicht am SMTP-Roundtrip hängt. Hinweis: Der Queue-Worker muss im Betrieb laufen und überwacht werden, da fristrelevante Bestätigungen darüber zugestellt werden (siehe Betriebsüberwachung). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
37 lines
1,000 B
PHP
37 lines
1,000 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\LegalRequest;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
/**
|
|
* Interner Hinweis an das Melde-Postfach: neue Rechts-/Compliance-Anfrage in
|
|
* der Admin-Queue (DSA-Fristen — Meldungen sollen nicht erst beim nächsten
|
|
* Blick in den Admin auffallen).
|
|
*/
|
|
class LegalRequestSubmitted extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(
|
|
public readonly LegalRequest $legalRequest,
|
|
) {}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Neue Meldung '.$this->legalRequest->reference().': '.$this->legalRequest->type->label(),
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(view: 'emails.legal.submitted');
|
|
}
|
|
}
|