Skip to content
Snippets Groups Projects
Commit acaed9a4 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13268 TIME 0:05 fix url name

parent 54748c50
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ foreach ($customs as $custom) { ...@@ -26,7 +26,7 @@ foreach ($customs as $custom) {
$loadedXml = simplexml_load_file($path); $loadedXml = simplexml_load_file($path);
if (!empty($loadedXml)) { if (!empty($loadedXml)) {
$configuration['uri'] = (string)$loadedXml->WEB_SSO_URL; $configuration['url'] = (string)$loadedXml->WEB_SSO_URL;
$configuration['mapping'] = []; $configuration['mapping'] = [];
......
...@@ -102,8 +102,8 @@ class ConfigurationController ...@@ -102,8 +102,8 @@ class ConfigurationController
$data = ['listDisplay' => $data['listDisplay'], 'listEvent' => $data['listEvent']]; $data = ['listDisplay' => $data['listDisplay'], 'listEvent' => $data['listEvent']];
} elseif ($args['privilege'] == 'admin_sso') { } elseif ($args['privilege'] == 'admin_sso') {
if (!Validator::notEmpty()->stringType()->validate($data['uri'])) { if (!empty($data['url']) && !Validator::stringType()->validate($data['url'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body uri is empty or not a string']); return $response->withStatus(400)->withJson(['errors' => 'Body url is empty or not a string']);
} }
if (!Validator::notEmpty()->arrayType()->validate($data['mapping'])) { if (!Validator::notEmpty()->arrayType()->validate($data['mapping'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body mapping is empty or not an array']); return $response->withStatus(400)->withJson(['errors' => 'Body mapping is empty or not an array']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment