protected function checkActivation(UserInterface $user)
    {
        $completed = $this->activations->completed($user);

        if (! $completed) {
            $exception = new NotActivatedException('Your account has not been activated yet.');

            $exception->setUser($user);

            throw $exception;
        }
    }
protected function checkActivation(UserInterface $user)
    {
        $completed = $this->activations->completed($user);

        if (! $completed) {
            $exception = new NotActivatedException('Your account has not been activated yet.');

            $exception->setUser($user);

            throw $exception;
        }
    }
protected function checkActivation ( UserInterface $ user ) { $ completed = $ this -> activations -> completed ( $ user ) ; if ( ! $ completed ) { $ exception = new NotActivatedException ( 'Your account has not been activated yet.' ) ; $ exception -> setUser ( $ user ) ; throw $ exception ; } }
Checks the activation status of the given user.

@param  \Cartalyst\Sentinel\Users\UserInterface  $user
@return bool
@throws \Cartalyst\Sentinel\Checkpoints\NotActivatedException
Checks the activation status of the given user .