From 7239caf743da4aeb9d362e7dabfa65d3c1676fa3 Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 15 Oct 2025 18:22:44 +0200 Subject: [PATCH] wip --- .../ResetPasswordNotification.php | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/app/Notifications/ResetPasswordNotification.php b/app/Notifications/ResetPasswordNotification.php index 24f730b..6a8ce4a 100644 --- a/app/Notifications/ResetPasswordNotification.php +++ b/app/Notifications/ResetPasswordNotification.php @@ -33,13 +33,23 @@ class ResetPasswordNotification extends Notification public function toMail(object $notifiable): MailMessage { return (new MailMessage) - ->subject('Benachrichtigung zum Zurücksetzen des Passworts') - ->greeting('Hallo'." {$notifiable->name},") - ->line('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.') - ->action('Passwort Zurücksetzen', $this->resetUrl($notifiable)) - ->line(Lang::get('Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords'))])) - ->line('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'); + ->subject(Lang::get('Reset Password Notification')) + ->greeting(Lang::get('Hello')." {$notifiable->name},") + ->line(Lang::get('You are receiving this email because we received a password reset request for your account.')) + ->action(Lang::get('Reset Password'), $this->resetUrl($notifiable)) + ->line(Lang::get('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')])) + ->line(Lang::get('If you did not request a password reset, no further action is required.')); } + // public function toMail(object $notifiable): MailMessage + // { + // return (new MailMessage) + // ->subject('Benachrichtigung zum Zurücksetzen des Passworts') + // ->greeting('Hallo'." {$notifiable->name},") + // ->line('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.') + // ->action('Passwort Zurücksetzen', $this->resetUrl($notifiable)) + // ->line(Lang::get('Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords'))])) + // ->line('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'); + // } protected function resetUrl(mixed $notifiable): string {