2023-03-14 14:27:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Bo\Auth;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
2023-04-13 12:14:06 +02:00
|
|
|
use Illuminate\Contracts\Auth\StatefulGuard;
|
2023-03-14 14:27:51 +01:00
|
|
|
use Illuminate\Foundation\Auth\ResetsPasswords;
|
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
|
|
|
|
|
|
class ResetPasswordController extends Controller
|
|
|
|
|
{
|
|
|
|
|
use ResetsPasswords;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the guard to be used during authentication.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Contracts\Auth\StatefulGuard
|
|
|
|
|
*/
|
2023-04-13 12:14:06 +02:00
|
|
|
protected function guard(): StatefulGuard
|
2023-03-14 14:27:51 +01:00
|
|
|
{
|
|
|
|
|
return Auth::guard('backend');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Where to redirect users after login.
|
2023-04-13 12:14:06 +02:00
|
|
|
*
|
2023-03-14 14:27:51 +01:00
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
protected function redirectTo(): string
|
|
|
|
|
{
|
|
|
|
|
return \route('bo.login');
|
|
|
|
|
}
|
|
|
|
|
}
|