From f0a589f1503b61a32589711bd192a0ce0df3acd9 Mon Sep 17 00:00:00 2001 From: Tahsin Abrar Date: Sun, 24 Apr 2016 17:55:32 +0600 Subject: [PATCH] on forget password, show error message if user not found with email --- app/controllers/AuthController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/AuthController.php b/app/controllers/AuthController.php index 32e53eae65..c65001efec 100755 --- a/app/controllers/AuthController.php +++ b/app/controllers/AuthController.php @@ -332,6 +332,7 @@ class AuthController extends BaseController } } catch (Cartalyst\Sentry\Users\UserNotFoundException $e) { + return Redirect::route('forgot-password')->withInput()->with('error', $e->getMessage()); // Even though the username was not found, we will pretend // we have sent the password reset code through username, // this is a security measure against hackers.