/**
  * Logs the given user into Sentry.
  *
  * @param  \Cartalyst\Sentry\Users\UserInterface  $user
  * @param  bool  $remember
  * @return void
  */
 protected function login(UserInterface $user, $remember = false)
 {
     $throttleProvider = $this->sentry->getThrottleProvider();
     // Now, we will check the throttling to ensure we are
     // not logging in a user which shouldn't be allowed.
     if ($throttleProvider->isEnabled()) {
         $throttle = $throttleProvider->findByUserId($user->getId(), $this->sentry->getIpAddress());
         $throttle->check();
     }
     $this->sentry->login($user, $remember);
 }
 /**
  * Gets the IP address Sentry is bound to.
  *
  * @return string 
  * @static 
  */
 public static function getIpAddress()
 {
     return \Cartalyst\Sentry\Sentry::getIpAddress();
 }