48 lines
997 B
PHP
48 lines
997 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('fo.auth.passwords.confirm');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the post register / login redirect path.
|
||
|
|
*
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function redirectPath(): string
|
||
|
|
{
|
||
|
|
return $this->authLoggedRedirectPath();
|
||
|
|
}
|
||
|
|
}
|