/**
  * 
  * @param ProfileController $Sender
  * @param type $UserReference
  * @param type $Username
  * @param type $oauth_token
  * @param type $oauth_verifier
  */
 public function ProfileController_TwitterConnect_Create($Sender, $UserReference = '', $Username = '', $oauth_token = '', $oauth_verifier = '')
 {
     $Sender->Permission('Garden.SignIn.Allow');
     $Sender->GetUserInfo($UserReference, $Username, '', TRUE);
     $Sender->_SetBreadcrumbs(T('Connections'), '/profile/connections');
     // Get the access token.
     Trace('GetAccessToken()');
     $AccessToken = $this->GetAccessToken($oauth_token, $oauth_verifier);
     $this->AccessToken($AccessToken);
     // Get the profile.
     Trace('GetProfile()');
     $Profile = $this->GetProfile();
     // Save the authentication.
     Gdn::UserModel()->SaveAuthentication(array('UserID' => $Sender->User->UserID, 'Provider' => self::ProviderKey, 'UniqueID' => $Profile['id']));
     // Save the information as attributes.
     $Attributes = array('AccessToken' => array($AccessToken->key, $AccessToken->secret), 'Profile' => $Profile);
     Gdn::UserModel()->SaveAttribute($Sender->User->UserID, self::ProviderKey, $Attributes);
     $this->EventArguments['Provider'] = self::ProviderKey;
     $this->EventArguments['User'] = $Sender->User;
     $this->FireEvent('AfterConnection');
     Redirect(UserUrl($Sender->User, '', 'connections'));
 }
 /**
  * Profile settings
  *
  * @param ProfileController $Sender
  */
 public function profileController_signature_create($Sender)
 {
     $Sender->Permission('Garden.SignIn.Allow');
     $Sender->Title('Signature Settings');
     $this->Dispatch($Sender);
 }
 /**
  * Profile settings
  *
  * @param ProfileController $Sender
  */
 public function ProfileController_Ignore_Create($Sender)
 {
     $Sender->Permission('Garden.SignIn.Allow');
     $Sender->Title(T('Ignore List'));
     $this->Dispatch($Sender);
 }