diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index b19a40cde5..f99fc56e39 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -4,7 +4,6 @@ namespace App\Http\Controllers\Auth; use Event; use Illuminate\Http\Request; -use App\Models\PasswordReset; use App\Events\UserLoggedIn; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ResetsPasswords; @@ -59,14 +58,8 @@ class ResetPasswordController extends Controller public function showResetForm(Request $request, $token = null) { - $passwordReset = PasswordReset::whereToken($token)->first(); - - if (! $passwordReset) { - return redirect('login')->withMessage(trans('texts.invalid_code')); - } - return view('auth.passwords.reset')->with( - ['token' => $token, 'email' => $passwordReset->email] + ['token' => $token] ); } } diff --git a/app/Http/Controllers/ClientAuth/ResetPasswordController.php b/app/Http/Controllers/ClientAuth/ResetPasswordController.php index 70dfbb1322..511c10cfa9 100644 --- a/app/Http/Controllers/ClientAuth/ResetPasswordController.php +++ b/app/Http/Controllers/ClientAuth/ResetPasswordController.php @@ -4,7 +4,6 @@ namespace App\Http\Controllers\ClientAuth; use Password; use Config; -use App\Models\PasswordReset; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\Request; @@ -55,14 +54,8 @@ class ResetPasswordController extends Controller public function showResetForm(Request $request, $token = null) { - $passwordReset = PasswordReset::whereToken($token)->first(); - - if (! $passwordReset) { - return redirect('login')->withMessage(trans('texts.invalid_code')); - } - return view('clientauth.passwords.reset')->with( - ['token' => $token, 'email' => $passwordReset->email] + ['token' => $token] ); } diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index 46ff102143..7ecf64a063 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -40,7 +40,7 @@