Skip to content

A free open source IT asset/license management system

Removed check for active in password reset form

snipedb907815ffda
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']);
- }
+
}