updated maintenance mode, commands and login
This commit is contained in:
@ -10,17 +10,6 @@ use Illuminate\Support\Facades\Password;
|
||||
|
||||
class Forgot extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset emails and
|
||||
| includes a trait which assists in sending these notifications from
|
||||
| your application to your users. Feel free to explore this trait.
|
||||
|
|
||||
*/
|
||||
|
||||
use SendsPasswordResetEmails;
|
||||
|
||||
/**
|
||||
|
@ -9,17 +9,6 @@ use Illuminate\Support\Str;
|
||||
|
||||
class Login extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Login Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller handles authenticating users for the application and
|
||||
| redirecting them to your home screen. The controller uses a trait
|
||||
| to conveniently provide its functionality to your applications.
|
||||
|
|
||||
*/
|
||||
|
||||
use AuthenticatesUsers;
|
||||
|
||||
/**
|
||||
@ -34,10 +23,6 @@ class Login extends Controller
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
/*public function __construct()
|
||||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
}*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest', ['except' => 'destroy']);
|
||||
@ -104,7 +89,7 @@ class Login extends Controller
|
||||
return response()->json($response);
|
||||
}
|
||||
|
||||
session(['dashboard_id' => $user->dashboards()->pluck('id')->first()]);
|
||||
session(['dashboard_id' => $user->dashboards()->enabled()->pluck('id')->first()]);
|
||||
|
||||
$response = [
|
||||
'status' => null,
|
||||
|
@ -10,17 +10,6 @@ use Illuminate\Support\Str;
|
||||
|
||||
class Reset extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset requests
|
||||
| and uses a simple trait to include this behavior. You're free to
|
||||
| explore this trait and override any methods you wish to tweak.
|
||||
|
|
||||
*/
|
||||
|
||||
use ResetsPasswords;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user