protected function loginThrottling($identity)
    {
        $count = app('account.throttle')->throttleIdentity($identity);

        if($count >= config('store.throttle_limit')) return false;

        // Throttling delay!
        // See: http://www.codinghorror.com/blog/2009/01/dictionary-attacks-101.html
        if($count > 2) usleep(($count - 1) * 400000);

        return true;
    }
protected function loginThrottling($identity)
    {
        $count = app('account.throttle')->throttleIdentity($identity);

        if($count >= config('store.throttle_limit')) return false;

        // Throttling delay!
        // See: http://www.codinghorror.com/blog/2009/01/dictionary-attacks-101.html
        if($count > 2) usleep(($count - 1) * 400000);

        return true;
    }
protected function loginThrottling ( $ identity ) { $ count = app ( 'account.throttle' ) -> throttleIdentity ( $ identity ) ; if ( $ count >= config ( 'store.throttle_limit' ) ) return false ; // Throttling delay! // See: http://www.codinghorror.com/blog/2009/01/dictionary-attacks-101.html if ( $ count > 2 ) usleep ( ( $ count - 1 ) * 400000 ) ; return true ; }
Calls throttleIdentity of the loginThrottler and returns false
if the throttleCount is grater then the 'throttle_limit' config.
Also sleeps a little in order to avoid dicionary attacks.

@param mixed $identity .

@return boolean False if the identity has reached the 'throttle_limit'.
Calls throttleIdentity of the loginThrottler and returns false if the throttleCount is grater then the throttle_limit config . Also sleeps a little in order to avoid dicionary attacks .