ldc-gen-game-web/app/Http/Controllers/Fo/Auth/ConfirmPasswordController.php
2026-10-20 12:27:49 +02:00

47 lines
1 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Http\Controllers\Fo\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ConfirmsPasswords;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
class ConfirmPasswordController extends Controller
{
use ConfirmsPasswords;
/**
* Create a new controller instance.
*/
public function __construct()
{
$this->middleware('auth:frontend');
}
/**
* Display the password confirmation view.
*/
public function showConfirmForm(): View | RedirectResponse
{
if (Auth::guard('frontend')->check()) {
return \response()->redirectToRoute('home');
}
/** @var view-string $view */
$view = 'theme::auth.passwords.confirm';
return view($view);
}
/**
* Get the post register / login redirect path.
*/
public function redirectPath(): string
{
return $this->authLoggedRedirectPath();
}
}