58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Club\Auth;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\Foundation\Auth\ConfirmsPasswords;
|
|
use Illuminate\Http\RedirectResponse;
|
|
|
|
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
|
|
*/
|
|
public function showConfirmForm(): View|RedirectResponse
|
|
{
|
|
return view('club.auth.passwords.confirm');
|
|
}
|
|
|
|
/**
|
|
* Get the post register / login redirect path.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function redirectPath(): string
|
|
{
|
|
return $this->authLoggedRedirectPath();
|
|
}
|
|
|
|
/**
|
|
* Get the password confirmation validation rules.
|
|
*
|
|
* @return array
|
|
*/
|
|
protected function rules()
|
|
{
|
|
return [
|
|
// 'password' => 'required|current_password:club',
|
|
// FIXME: Change this on using crm
|
|
'password' => 'required',
|
|
];
|
|
}
|
|
}
|