From db907815ffdae53da1be42fff50daa0c77b9fb98 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Aug 2018 18:40:27 -0700 Subject: [PATCH] Removed check for active in password reset form --- .../Controllers/Auth/ResetPasswordController.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index b0e77a8e53..ac31e273cb 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -39,18 +39,7 @@ class ResetPasswordController extends Controller $this->middleware('guest'); } - public function showResetForm(Request $request, $token = null) - { - // Check that the user is active - - if ($user = User::where('email', '=',$request->input('email'))->where('activated','=','1')->count() > 0) { - return view('auth.passwords.reset')->with( - ['token' => $token, 'email' => $request->email] - ); - - } - return redirect()->route('password.request')->withErrors(['email' => 'No matching users']); - } + }