protected function loginFailed(Entity\Users $userEntity)
    {
        $this->flashLogger->error(Trans::__('general.phrase.error-user-name-password-incorrect'));
        $this->systemLogger->info("Failed login attempt for '" . $userEntity->getDisplayname() . "'.", ['event' => 'authentication']);

        // Update the failed login attempts, and perhaps throttle the logins.
        $userEntity->setFailedlogins($userEntity->getFailedlogins() + 1);
        $userEntity->setThrottleduntil($this->throttleUntil($userEntity->getFailedlogins() + 1));
        $userEntity->setPassword(null);
        $this->getRepositoryUsers()->save($userEntity);

        return false;
    }
protected function loginFailed(Entity\Users $userEntity)
    {
        $this->flashLogger->error(Trans::__('general.phrase.error-user-name-password-incorrect'));
        $this->systemLogger->info("Failed login attempt for '" . $userEntity->getDisplayname() . "'.", ['event' => 'authentication']);

        // Update the failed login attempts, and perhaps throttle the logins.
        $userEntity->setFailedlogins($userEntity->getFailedlogins() + 1);
        $userEntity->setThrottleduntil($this->throttleUntil($userEntity->getFailedlogins() + 1));
        $userEntity->setPassword(null);
        $this->getRepositoryUsers()->save($userEntity);

        return false;
    }
protected function loginFailed ( Entity \ Users $ userEntity ) { $ this -> flashLogger -> error ( Trans :: __ ( 'general.phrase.error-user-name-password-incorrect' ) ) ; $ this -> systemLogger -> info ( "Failed login attempt for '" . $ userEntity -> getDisplayname ( ) . "'." , [ 'event' => 'authentication' ] ) ; // Update the failed login attempts, and perhaps throttle the logins. $ userEntity -> setFailedlogins ( $ userEntity -> getFailedlogins ( ) + 1 ) ; $ userEntity -> setThrottleduntil ( $ this -> throttleUntil ( $ userEntity -> getFailedlogins ( ) + 1 ) ) ; $ userEntity -> setPassword ( null ) ; $ this -> getRepositoryUsers ( ) -> save ( $ userEntity ) ; return false ; }
Add error messages to logs and update the user.

@param Entity\Users $userEntity

@return false
Add error messages to logs and update the user .