コード例 #1
0
 function do_autoSignup()
 {
     $oSource =& $this->oValidator->validateAuthenticationSource($_REQUEST['source_id']);
     $oProvider =& KTAuthenticationUtil::getAuthenticationProviderForSource($oSource);
     $oDispatcher = $oProvider->getSignupDispatcher($oSource);
     $oDispatcher->subDispatch($this);
     exit(0);
 }
コード例 #2
0
 function autoSignup($sUsername, $sPassword, $aExtra)
 {
     $aSources = KTAuthenticationSource::getSources();
     foreach ($aSources as $oSource) {
         $oProvider = KTAuthenticationUtil::getAuthenticationProviderForSource($oSource);
         $res = $oProvider->autoSignup($sUsername, $sPassword, $aExtra, $oSource);
         if ($res) {
             return $res;
         }
     }
     return false;
 }