Skip to content

Commit

Permalink
找回密码成功消息提示
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Jul 31, 2020
1 parent a5c49d1 commit 2e89037
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions app/Http/Controllers/Auth/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,23 @@
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\ResetsPasswords;
use Illuminate\Http\Request;

class ResetPasswordController 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;

/**
* Where to redirect users after resetting their password.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
protected $redirectTo = '/';

public function __construct()
{
$this->middleware('guest');
}

protected function sendResetResponse(Request $request, $response)
{
session()->flash('success', '密码更新成功,您已成功登录!');
return redirect($this->redirectPath());
}
}

0 comments on commit 2e89037

Please sign in to comment.