2016-09-01 16:23:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Auth;
|
|
|
|
|
2016-09-02 10:42:05 +01:00
|
|
|
use App\Facade\Theme;
|
2016-09-01 16:23:39 +01:00
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
|
2017-04-10 20:48:47 +01:00
|
|
|
use Illuminate\Http\Request;
|
2016-09-01 16:23:39 +01:00
|
|
|
|
|
|
|
class ForgotPasswordController 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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->middleware('guest');
|
|
|
|
}
|
2016-09-02 10:42:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Display the form to request a password reset link.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2017-04-10 20:48:47 +01:00
|
|
|
public function showLinkRequestForm(Request $request)
|
2016-09-02 10:42:05 +01:00
|
|
|
{
|
2017-04-10 20:48:47 +01:00
|
|
|
$resetStatus = $request->session()->get('status');
|
|
|
|
|
|
|
|
return Theme::render('auth.passwords.email', ['success' => $resetStatus]);
|
2016-09-02 10:42:05 +01:00
|
|
|
}
|
2016-09-01 16:23:39 +01:00
|
|
|
}
|