Skip to content
Snippets Groups Projects
Commit 8785bec8 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Séparation des options de config "locale" et "globale".

parent 5e0cdd91
Branches
Tags
No related merge requests found
<?php
/**
* UnicaenAuth Global Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
'bjyauthorize' => array(
// default role for unauthenticated users
'default_role' => false,
),
/**
* Mot de passe sésame, chiffré avec l'algo Bcrypt
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => false,
/**
* Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit
* être enregistré/mis à jour dans la table des utilisateurs de l'appli.
*/
'save_ldap_user_in_database' => false,
/**
* Enable registration
* Allows users to register through the website.
* Accepted values: boolean true or false
*/
'enable_registration' => false,
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-auth' => $settings,
'zfcuser' => array(
$k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false,
),
);
\ No newline at end of file
......@@ -15,7 +15,7 @@ $settings = array(
// 'connection' => array(
// 'default' => array(
// 'params' => array(
// 'hostname' => 'host.domain.fr',
// 'hostname' => 'cas.unicaen.fr',
// 'port' => 443,
// 'version' => "2.0",
// 'uri' => "",
......@@ -29,18 +29,7 @@ $settings = array(
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => '$2y$14$Kvq9KHfDRMFayA6SJZL8tO4rjNjOtOeYwI/.GoaYgY2IxUP0rkdIS',
/**
* Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit
* être enregistré/mis à jour dans la table des utilisateurs de l'appli.
*/
'save_ldap_user_in_database' => false,
/**
* Enable registration
* Allows users to register through the website.
* Accepted values: boolean true or false
*/
'enable_registration' => false,
'sesame_password' => '$2y$14$jbCVltklcys8TQj3hu30.OcKMi7rtUgmu3eo/nxMXynYvcZ5iHF8q',
);
/**
......@@ -48,7 +37,4 @@ $settings = array(
*/
return array(
'unicaen-auth' => $settings,
'zfcuser' => array(
$k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false,
),
);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment