public function register(array $credentials, $activate = false)
	{
		$user = $this->userProvider->create($credentials);

		if ($activate)
		{
			$user->attemptActivation($user->getActivationCode());
		}

		return $this->user = $user;
	}
public function register(array $credentials, $activate = false)
	{
		$user = $this->userProvider->create($credentials);

		if ($activate)
		{
			$user->attemptActivation($user->getActivationCode());
		}

		return $this->user = $user;
	}
public function register ( array $ credentials , $ activate = false ) { $ user = $ this -> userProvider -> create ( $ credentials ) ; if ( $ activate ) { $ user -> attemptActivation ( $ user -> getActivationCode ( ) ) ; } return $ this -> user = $ user ; }
Registers a user by giving the required credentials
and an optional flag for whether to activate the user.

@param  array  $credentials
@param  bool   $activate
@return \Cartalyst\Sentry\Users\UserInterface
Registers a user by giving the required credentials and an optional flag for whether to activate the user .