2024-07-05 16:34:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Club\Auth;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
use Illuminate\Foundation\Auth\ConfirmsPasswords;
|
2024-08-02 11:41:34 +02:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
2024-07-05 16:34:57 +02:00
|
|
|
|
|
|
|
|
class ConfirmPasswordController extends Controller
|
|
|
|
|
{
|
|
|
|
|
use ConfirmsPasswords;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new controller instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->middleware('auth:club');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Display the password confirmation view.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse
|
|
|
|
|
*/
|
2024-08-02 11:41:34 +02:00
|
|
|
public function showConfirmForm(): \Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse
|
2024-07-05 16:34:57 +02:00
|
|
|
{
|
2024-08-02 11:41:34 +02:00
|
|
|
if (Auth::guard('club')->check()) {
|
|
|
|
|
return \response()->redirectToRoute('home');
|
|
|
|
|
}
|
2024-07-05 16:34:57 +02:00
|
|
|
return view('club.auth.passwords.confirm');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the post register / login redirect path.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function redirectPath(): string
|
|
|
|
|
{
|
|
|
|
|
return $this->authLoggedRedirectPath();
|
|
|
|
|
}
|
|
|
|
|
}
|