/**
  * @return string
  */
 public function ServiceChange()
 {
     $oAccount = $this->oActions->GetAccount();
     if ($oAccount && $this->oActions->GetCapa(false, \RainLoop\Enumerations\Capa::ADDITIONAL_ACCOUNTS, $oAccount)) {
         $oAccountToLogin = null;
         $sEmail = empty($this->aPaths[2]) ? '' : \urldecode(\trim($this->aPaths[2]));
         if (!empty($sEmail)) {
             $sEmail = \MailSo\Base\Utils::IdnToAscii($sEmail);
             $aAccounts = $this->oActions->GetAccounts($oAccount);
             if (isset($aAccounts[$sEmail])) {
                 $oAccountToLogin = $this->oActions->GetAccountFromCustomToken($aAccounts[$sEmail], false, false);
             }
         }
         if ($oAccountToLogin) {
             $this->oActions->AuthToken($oAccountToLogin);
         }
     }
     $this->oActions->Location('./');
     return '';
 }
 /**
  * @return string
  */
 public function ServiceChange()
 {
     if ($this->Config()->Get('webmail', 'allow_additional_accounts', true)) {
         $oAccountToLogin = null;
         $sEmail = empty($this->aPaths[2]) ? '' : \urldecode(\trim($this->aPaths[2]));
         if (!empty($sEmail)) {
             $sEmail = \MailSo\Base\Utils::IdnToAscii($sEmail);
             $oAccount = $this->oActions->GetAccount();
             if ($oAccount) {
                 $aAccounts = $this->oActions->GetAccounts($oAccount);
                 if (isset($aAccounts[$sEmail])) {
                     $oAccountToLogin = $this->oActions->GetAccountFromCustomToken($aAccounts[$sEmail], false, false);
                 }
             }
         }
         if ($oAccountToLogin) {
             $this->oActions->AuthProcess($oAccountToLogin);
         }
     }
     $this->oActions->Location('./');
     return '';
 }