modify configuration before creating metadatas
This commit is contained in:
parent
dffdd1b050
commit
20aba88ca5
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue