예제 #1
0
파일: User.php 프로젝트: nncsang/Kurogo
 public function setCredentials($credentials)
 {
     try {
         $value = Kurogo::encrypt($credentials);
     } catch (KurogoException $e) {
         $value = $credentials;
     }
     $this->setUserData('KurogoCredentialsCache', $value);
 }
예제 #2
0
 public function setCredentials($credentials, AuthenticationAuthority $authority)
 {
     try {
         $value = Kurogo::encrypt($credentials);
     } catch (KurogoException $e) {
         $value = $credentials;
     }
     $_SESSION['KurogoCredentialsCache'][$authority->getAuthorityIndex()] = $value;
 }