Removed deprecated event and handlers.

This commit is contained in:
James Cole
2016-12-28 10:00:58 +01:00
parent 9c6a3e4ad5
commit 8ccdf9ea83
7 changed files with 5 additions and 97 deletions

View File

@@ -14,7 +14,6 @@ namespace FireflyIII\Http\Controllers\Auth;
use Config;
use FireflyConfig;
use FireflyIII\Events\BlockedBadLogin;
use FireflyIII\Events\BlockedUserLogin;
use FireflyIII\Events\LockedOutUser;
use FireflyIII\Http\Controllers\Controller;
@@ -87,11 +86,6 @@ class LoginController extends Controller
event(new BlockedUserLogin($foundUser, $request->ip()));
}
// simply a bad login.
if (is_null($foundUser)) {
event(new BlockedBadLogin($credentials['email'], $request->ip()));
}
// If the login attempt was unsuccessful we will increment the number of attempts
// to login and redirect the user back to the login form. Of course, when this
// user surpasses their maximum number of attempts they will get locked out.