23-01-2026
This commit is contained in:
parent
07959c0ba2
commit
854ce02bf6
166 changed files with 32909 additions and 1262 deletions
30
app/Notifications/CustomResetPasswordNotification.php
Normal file
30
app/Notifications/CustomResetPasswordNotification.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Illuminate\Auth\Notifications\ResetPassword;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
|
||||
class CustomResetPasswordNotification extends ResetPassword
|
||||
{
|
||||
/**
|
||||
* Get the reset password notification mail message for the given URL.
|
||||
*
|
||||
* @param string $url
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
protected function buildMailMessage($url)
|
||||
{
|
||||
$expiryMinutes = config('auth.passwords.' . config('auth.defaults.passwords') . '.expire');
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('Passwort zurücksetzen - ' . config('app.name'))
|
||||
->greeting('Hallo!')
|
||||
->line('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.')
|
||||
->line('Klicken Sie auf den folgenden Button, um ein neues Passwort zu vergeben:')
|
||||
->action('Passwort zurücksetzen', $url)
|
||||
->line('Dieser Link ist **' . $expiryMinutes . ' Minuten** gültig.')
|
||||
->line('Falls Sie keine Passwort-Zurücksetzung angefordert haben, ist keine weitere Aktion erforderlich. Ihr Passwort bleibt unverändert.')
|
||||
->salutation('Mit freundlichen Grüßen, ' . PHP_EOL . 'Ihr **' . config('app.name') . '** Team');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue