unicaen-auth.global.php.dist 847 Bytes
Newer Older
Bertrand Gauthier's avatar
Bertrand Gauthier committed
1
2
<?php
/**
3
 * UnicaenAuth Global Configuration
Bertrand Gauthier's avatar
Bertrand Gauthier committed
4
5
6
7
8
9
10
11
12
 *
 * 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(
    /**
     * 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.
     */
Bertrand Gauthier's avatar
Bertrand Gauthier committed
13
    'save_ldap_user_in_database' => false,
Bertrand Gauthier's avatar
Bertrand Gauthier committed
14
15
16
17
18
    /**
     * Enable registration
     * Allows users to register through the website.
     * Accepted values: boolean true or false
     */
Bertrand Gauthier's avatar
Bertrand Gauthier committed
19
    'enable_registration' => false,
Bertrand Gauthier's avatar
Bertrand Gauthier committed
20
21
22
23
24
25
26
);

/**
 * You do not need to edit below this line
 */
return array(
    'unicaen-auth' => $settings,
Bertrand Gauthier's avatar
Bertrand Gauthier committed
27
28
29
    'zfcuser'      => array(
        $k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false,
    ),
30
);