From: hickert Date: Wed, 10 Nov 2010 09:48:00 +0000 (+0000) Subject: Added getter method for instancePassword X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3cf2c52592ee07fa1eae555c77f3214f3e7f3c18;p=gosa.git Added getter method for instancePassword git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_GOsaRegistration.inc b/gosa-core/include/class_GOsaRegistration.inc index 33c3394ac..904ca664f 100644 --- a/gosa-core/include/class_GOsaRegistration.inc +++ b/gosa-core/include/class_GOsaRegistration.inc @@ -45,6 +45,9 @@ class GOsaRegistration function registrationNotWanted() { + // While we are registered this will always be FALSE. + if($this->isInstanceRegistered()) return(FALSE); + // Check if the registration process was postponed or completely(>=0) canceled (-1) $date = $this->config->configRegistry->getPropertyValue('GOsaRegistration','askForRegistration'); return($date == -1); diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 5df8c8ef8..b872cb5d8 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -102,6 +102,12 @@ class config { } + function getInstancePassword() + { + return($this->instancePassword); + } + + /*! \brief Check and reload the configuration * * This function checks if the configuration has changed, since it was