Die Auth-Strecke (Login, Registrierung, Passwort-Reset/-Bestaetigung, Magic-Link, E-Mail-Verifizierung, 2FA) war als einziger Backend-Bereich noch nicht durchgaengig __()-gewrappt. Alle sichtbaren deutschen Strings in __() gewickelt (Deutsch bleibt Schluessel). Eingebettete Links (AGB/ Datenschutz) und Alpine-x-text sauber segmentiert. Heading/Eyebrow und topRight-Label/-Link sowie der From-Banner werden jetzt im Auth-Layout am Ausgabepunkt uebersetzt (im #[Layout]-Attribut sind keine __()-Aufrufe moeglich). Leeres lang/en.json als Geruest fuer die spaetere EN-Befuellung. Kunden-, Admin-, Settings- und Component-Views waren bereits vollstaendig gewrappt (per Audit bestaetigt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
58 lines
2.1 KiB
PHP
58 lines
2.1 KiB
PHP
<?php
|
||
|
||
use Illuminate\Support\Facades\Auth;
|
||
use Illuminate\Support\Facades\Session;
|
||
use Livewire\Attributes\Layout;
|
||
use Livewire\Volt\Component;
|
||
|
||
new #[Layout('components.layouts.auth.pressekonto', ['heading' => 'Danke für Ihre Registrierung', 'eyebrow' => 'Nur noch ein Schritt', 'showFromBanner' => false])] class extends Component {
|
||
/**
|
||
* Send an email verification notification to the user.
|
||
*/
|
||
public function sendVerification(): void
|
||
{
|
||
if (Auth::user()->hasVerifiedEmail()) {
|
||
$this->redirectIntended(default: route('dashboard', absolute: false), navigate: true);
|
||
|
||
return;
|
||
}
|
||
|
||
Auth::user()->sendEmailVerificationNotification();
|
||
|
||
Session::flash('status', 'verification-link-sent');
|
||
}
|
||
}; ?>
|
||
|
||
<div>
|
||
<p class="text-[13.5px] text-ink-2 leading-[1.65] !-mt-4 mb-6">
|
||
{{ __('Ihr Konto wurde angelegt. Wir haben Ihnen einen Bestätigungslink an') }}
|
||
<strong class="text-ink font-semibold">{{ Auth::user()?->email }}</strong>
|
||
{{ __('gesendet. Bitte öffnen Sie die Mail und klicken Sie auf den Link – danach wird Ihr Konto freigeschaltet und Sie landen direkt in Ihrem Dashboard.') }}
|
||
</p>
|
||
|
||
@if (session('status') === 'verification-link-sent')
|
||
<div class="field-status mb-6" role="status">
|
||
{{ __('Ein neuer Bestätigungslink wurde an Ihre E-Mail-Adresse versendet.') }}
|
||
</div>
|
||
@endif
|
||
|
||
<div class="space-y-3">
|
||
<button
|
||
type="button"
|
||
wire:click="sendVerification"
|
||
wire:loading.attr="disabled"
|
||
wire:target="sendVerification"
|
||
class="auth-btn-primary"
|
||
>
|
||
<span wire:loading.remove wire:target="sendVerification">{{ __('Bestätigungs-Mail erneut senden') }}</span>
|
||
<span wire:loading wire:target="sendVerification">{{ __('Mail wird gesendet …') }}</span>
|
||
</button>
|
||
|
||
<form method="POST" action="{{ route('logout') }}">
|
||
@csrf
|
||
<button type="submit" class="auth-btn-outline">
|
||
{{ __('Abmelden') }}
|
||
</button>
|
||
</form>
|
||
</div>
|
||
</div>
|