From 20aba88ca56efec2163aaf0a449098eebcfc2237 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 12 May 2008 11:57:33 +0200 Subject: [PATCH] modify configuration before creating metadatas --- endpoints/configure.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/endpoints/configure.php b/endpoints/configure.php index 7947d01..318f308 100644 --- a/endpoints/configure.php +++ b/endpoints/configure.php @@ -18,19 +18,20 @@ if (isset($_POST)) { && (isset($_POST['idp_metadata']) || isset($_POST['idp_metadata_url']))) { - $ret = $configgen->makeConfig( + $error = ""; + try { + $configgen->importConfigFromPost($_POST); + $ret = $configgen->makeConfig( $_POST['organization'], $_POST['idp_metadata'], $_POST['idp_metadata_url'], isset($_POST['clear_pkey']), $error); - - if ($ret) { - try { - $configgen->importConfigFromPost($_POST); - } catch (Exception $e) { - lassospkit_showCode($e); + if ($ret) { + lassospkit_showCode($error); } + } catch (Exception $e) { + lassospkit_showCode($e); } } }