- app.js: Der Anfangsscan übergab das Dokument, das kein Element ist; HLS-Filme im Quelltext wurden nie angebunden. Vollbild findet sein Video auch neben dem Player. - Download und Ansicht heißen nach dem Anzeigetitel statt „laden.mp4“. - Mitgliederprofil: Name, E-Mail mit Bestätigung der neuen Adresse, Passwort, Rechnungsadresse (ADR-46). - Kleine Fußzeile mit Rechtlichem aus der CMS-Navigation. - Lizenzdetail nennt, dass Einzel-/Mehrfachlizenz nicht festgelegt ist (Funktion gibt es noch nicht). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Http\SignedLink;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Notifications\Notification;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* Bestätigungslink an die NEUE Adresse. Erst der Klick darauf tauscht die Adresse des Kontos aus.
|
|
*/
|
|
class ConfirmNewEmailAddress extends Notification
|
|
{
|
|
public function __construct(private readonly int $userId, private readonly string $newEmail) {}
|
|
|
|
/** @return list<string> */
|
|
public function via(mixed $notifiable): array
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail(mixed $notifiable): MailMessage
|
|
{
|
|
$url = SignedLink::temporary('member.profile.email.confirm', Carbon::now()->addMinutes(60), [
|
|
'id' => $this->userId,
|
|
'hash' => sha1($this->newEmail),
|
|
]);
|
|
|
|
return (new MailMessage)
|
|
->subject('Neue E-Mail-Adresse bestätigen')
|
|
->line('Du hast gebeten, die E-Mail-Adresse deines Kontos bei Lara & Felix zu ändern. Bestätige mit dem Knopf, dass diese Adresse dir gehört.')
|
|
->action('Adresse bestätigen', $url)
|
|
->line('Der Link gilt 60 Minuten. Wenn du das nicht angefordert hast, ignoriere diese Nachricht; es ändert sich nichts.');
|
|
}
|
|
}
|