diff --git a/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php index 7b4f22e9..fe442d05 100644 --- a/app/Http/Controllers/Auth/EmailVerificationNotificationController.php +++ b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -34,7 +34,7 @@ class EmailVerificationNotificationController extends Controller { $this->accountService->changeEmail($request->validated(), Auth::user()->id); - return back()->with('success', 'We have sent a email verification link to your new email account.'); + return back()->with('success', 'Wir haben einen Bestätigungslink an deine neue E-Mail-Adresse gesendet.'); } /** @@ -45,7 +45,7 @@ class EmailVerificationNotificationController extends Controller $user = Auth::user(); $saved = $this->accountService->saveChangedEmail($request->token, $user->id); $flash = $saved ? 'success' : 'error'; - $message = $saved ? "New email successfully changed." : "Verification token didn't match or expire."; + $message = $saved ? 'Die E‑Mail wurde erfolgreich geändert.' : 'Der Bestätigungs-Token stimmt nicht oder ist abgelaufen.'; if ($user->role == 'student') { return redirect()->route('student.index', ['tab' => 'settings']) diff --git a/resources/views/mail/email-change-verification.blade.php b/resources/views/mail/email-change-verification.blade.php index 2a341bd8..a8cab394 100644 --- a/resources/views/mail/email-change-verification.blade.php +++ b/resources/views/mail/email-change-verification.blade.php @@ -45,16 +45,16 @@
- Hello, {{ $user->name }}! + Hallo, {{ $user->name }}!
- We received a request to update the email address for your {{ config('mail.from.name') }} account. To complete - this change, please verify your new email address by clicking the button below: + Wir haben eine Anfrage erhalten, die E‑Mail-Adresse für dein {{ config('mail.from.name') }}-Konto zu ändern. Um die + Änderung abzuschließen, bestätige bitte deine neue E‑Mail-Adresse, indem du auf den untenstehenden Button klickst:
@@ -62,21 +62,21 @@ href="{{ $verificationUrl }}" style="display: inline-block; padding: 0.75em 1.5em; background-color: #0969da; color: #fff; border-radius: 0.5em; text-decoration: none; font-weight: 600; margin-bottom: 1.5em;" > - Verify New Email Address + Neue E-Mail-Adresse bestätigen- This verification link will expire in 5 minutes. + Dieser Bestätigungslink läuft in 5 Minuten ab.
- If you did not request this change, please secure your account by changing your password immediately and contact - our support team. + Wenn du diese Änderung nicht angefordert hast, sichere bitte sofort dein Konto, indem du dein Passwort änderst, und + kontaktiere unser Support-Team.
- Thanks,
+ Vielen Dank,
{{ config('mail.from.name') }} Team