Exemple #1
0
 private function Synchronize($username)
 {
     $registration = $this->GetRegistration();
     $registration->Synchronize(new AuthenticatedUser($username, $username . $this->options->EmailSuffix(), $username, $username, uniqid(), Configuration::Instance()->GetKey(ConfigKeys::LANGUAGE), Configuration::Instance()->GetDefaultTimezone(), null, null, null), true);
 }
Exemple #2
0
 private static function casValidationURL($ticket, $maillist = false)
 {
     $url = CASOptions::ValidateURL();
     $url .= "?service=" . urlencode(self::getReturnURL());
     $url .= "&ticket=" . $ticket;
     if (strpos($maillist, ',')) {
         $url .= '&allow=!' . str_replace(',', ',!', $maillist);
     } elseif ($maillist !== false) {
         $url .= '&allow=!' . $maillist;
     }
     return $url;
 }