mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-15 00:06:48 +00:00
✨ Refactor routing to dashboard with country parameter adjustment
This commit is contained in:
@@ -32,7 +32,7 @@ class extends Component {
|
||||
|
||||
session(['auth.password_confirmed_at' => time()]);
|
||||
|
||||
$this->redirectIntended(default: route_with_country('dashboard', absolute: false), navigate: true);
|
||||
$this->redirectIntended(default: route('dashboard', ['country' => 'de'], absolute: false), navigate: true);
|
||||
}
|
||||
}; ?>
|
||||
|
||||
|
||||
@@ -63,8 +63,10 @@ class extends Component {
|
||||
if ($user) {
|
||||
Auth::loginUsingId($user->id);
|
||||
Session::regenerate();
|
||||
$this->redirectIntended(default: route('dashboard', ['country' => 'de'], absolute: false),
|
||||
navigate: true);
|
||||
$this->redirectIntended(
|
||||
default: route('dashboard', ['country' => 'de'], absolute: false),
|
||||
navigate: true,
|
||||
);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
@@ -84,8 +86,10 @@ class extends Component {
|
||||
RateLimiter::clear($this->throttleKey());
|
||||
Session::regenerate();
|
||||
|
||||
$this->redirectIntended(default: route('dashboard', ['country' => 'de'], absolute: false),
|
||||
navigate: true);
|
||||
$this->redirectIntended(
|
||||
default: route('dashboard', ['country' => 'de'], absolute: false),
|
||||
navigate: true
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,7 +35,7 @@ class extends Component {
|
||||
|
||||
Auth::login($user);
|
||||
|
||||
$this->redirectIntended(route_with_country('dashboard', absolute: false), navigate: true);
|
||||
$this->redirectIntended(route('dashboard', ['country' => 'de'],absolute: false), navigate: true);
|
||||
}
|
||||
}; ?>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class extends Component {
|
||||
public function sendVerification(): void
|
||||
{
|
||||
if (Auth::user()->hasVerifiedEmail()) {
|
||||
$this->redirectIntended(default: route_with_country('dashboard', absolute: false), navigate: true);
|
||||
$this->redirectIntended(default: route('dashboard', ['country' => 'de'],absolute: false), navigate: true);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ class extends Component {
|
||||
$user = Auth::user();
|
||||
|
||||
if ($user->hasVerifiedEmail()) {
|
||||
$this->redirectIntended(default: route_with_country('dashboard', absolute: false));
|
||||
$this->redirectIntended(default: route('dashboard', ['country' => 'de'],absolute: false));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user