Skip to content
Snippets Groups Projects
Verified Commit 43a05fc1 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix: rename wayf.php to module_campusmultiauth.php

parent ff9ff1b8
No related branches found
No related tags found
1 merge request!3Fixes
...@@ -32,7 +32,7 @@ Of course, both authsources must be defined in authsources.php file. When the co ...@@ -32,7 +32,7 @@ Of course, both authsources must be defined in authsources.php file. When the co
## Login page configuration ## Login page configuration
The second part of the configuration is setting up the login page itself. While doing that, it's highly recommended to follow our suggestions (***TODO link***). To configure the login page, you need to create a new configuration file `wayf.php`. In this module, there is an example configuration available at `config-templates/wayf.php`. In configuration file, there are following options available: The second part of the configuration is setting up the login page itself. While doing that, it's highly recommended to follow our suggestions (***TODO link***). To configure the login page, you need to create a new configuration file `module_campusmultiauth.php`. In this module, there is an example configuration available at `config-templates/module_campusmultiauth.php`. In configuration file, there are following options available:
`css_framework` - if set to `muni_jvs`, the login page displays in MUNI framework. Otherwise, Bootstrap 5 is used. `css_framework` - if set to `muni_jvs`, the login page displays in MUNI framework. Otherwise, Bootstrap 5 is used.
......
...@@ -9,7 +9,7 @@ header('Content-type: application/json'); ...@@ -9,7 +9,7 @@ header('Content-type: application/json');
$index = $_GET['index']; $index = $_GET['index'];
$config = $wayfConfig = Configuration::getConfig('wayf.php')->toArray(); $config = Configuration::getConfig('module_campusmultiauth.php')->toArray();
$searchBox = $config['components'][$index]; $searchBox = $config['components'][$index];
$metadataStorageHandler = MetaDataStorageHandler::getMetadataHandler(); $metadataStorageHandler = MetaDataStorageHandler::getMetadataHandler();
......
...@@ -68,7 +68,7 @@ if (array_key_exists('source', $_POST)) { ...@@ -68,7 +68,7 @@ if (array_key_exists('source', $_POST)) {
} }
} }
$wayfConfig = Configuration::getConfig('wayf.php')->toArray(); $wayfConfig = Configuration::getConfig('module_campusmultiauth.php')->toArray();
if (!empty($wayfConfig['footer']['format']) && $wayfConfig['footer']['format'] === 'markdown') { if (!empty($wayfConfig['footer']['format']) && $wayfConfig['footer']['format'] === 'markdown') {
$converter = new CommonMarkConverter(); $converter = new CommonMarkConverter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment