Exemplo n.º 1
0
 public function setCredentials($credentials)
 {
     try {
         $value = Kurogo::encrypt($credentials);
     } catch (KurogoException $e) {
         $value = $credentials;
     }
     $this->setUserData('KurogoCredentialsCache', $value);
 }
Exemplo n.º 2
0
 public function setCredentials($credentials, AuthenticationAuthority $authority)
 {
     try {
         $value = Kurogo::encrypt($credentials);
     } catch (KurogoException $e) {
         $value = $credentials;
     }
     $_SESSION['KurogoCredentialsCache'][$authority->getAuthorityIndex()] = $value;
 }