Fix auth form errors and redirects: Add React keys/useEffects for error rendering and scroll, Inertia::location in controllers for SPA navigation, extend RegistrationTest and add E2E. Update docs (changes/2025-10-02-registration-fixes.md, prp/13-backend-authentication.md). Add new UI components (accordion, carousel, progress, table, tabs), marketing/legal pages (Blog, Kontakt, Datenschutz, etc.), fonts, user migration (remove_name), views/css/package updates, seeders/factories.
This commit is contained in:
@@ -41,11 +41,11 @@ class AuthenticatedSessionController extends Controller
|
||||
$request->session()->regenerate();
|
||||
|
||||
$user = Auth::user();
|
||||
if ($user && !$user->hasVerifiedEmail()) {
|
||||
return redirect()->route('verification.notice');
|
||||
if ($user && $user->email_verified_at === null) {
|
||||
return Inertia::location(route('verification.notice'));
|
||||
}
|
||||
|
||||
return redirect()->intended(route('dashboard', absolute: false));
|
||||
return Inertia::location(route('dashboard', absolute: false));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user