ldc-gen-game-web/app/Http/Controllers/Fo/Auth/ConfirmPasswordController.php

48 lines
1 KiB
PHP
Raw Permalink Normal View History

<?php
2026-10-02 12:09:46 +02:00
declare(strict_types=1);
namespace App\Http\Controllers\Fo\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ConfirmsPasswords;
2026-10-02 12:09:46 +02:00
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Auth;
2026-10-02 12:09:46 +02:00
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.
*/
2026-10-02 12:09:46 +02:00
public function showConfirmForm(): View | RedirectResponse
{
if (Auth::guard('frontend')->check()) {
return \response()->redirectToRoute('home');
}
2026-10-02 12:09:46 +02:00
/** @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();
}
}