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