From 2b563918c2d3d6cc2b60d4996c5553fb5953dd57 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Nov 2010 15:44:32 +0000 Subject: [PATCH] Updated registration process git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20225 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dashBoard/Register/class_RegistrationDialog.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegistrationDialog.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegistrationDialog.inc index f6add96cc..8830663f8 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/class_RegistrationDialog.inc +++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegistrationDialog.inc @@ -47,7 +47,7 @@ class RegistrationDialog extends plugin // Try to registrate the instance with the given username and password. $rpcHandle = $this->config->registration->getConnection($this->values['username'],$this->values['password']); - $rpcHandle->registerInstance($this->config->getInstanceUuid()); + $password = $rpcHandle->registerInstance($this->config->getInstanceUuid()); if(!$rpcHandle->success()){ $code = $rpcHandle->getHTTPstatusCode(); if($code == 0){ @@ -58,10 +58,18 @@ class RegistrationDialog extends plugin $smarty->assign("error", _("Internal server error, please try again later. If the problem persists contact the GOsa-Team!")); } }else{ + $this->step = 2; + + // Restore the registration postpone value. $prop = $this->config->configRegistry->getProperty('GOsaRegistration','askForRegistration'); $prop->setValue(0); $prop->save(); + + // Store the returned password + $prop = $this->config->configRegistry->getProperty('GOsaRegistration','instancePassword'); + $prop->setValue($password); + $prop->save(); } } } -- 2.30.2