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