Added config setting to disable password-reset and user-registration (#261)
This commit is contained in:
@@ -13,7 +13,9 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||
|
||||
/**
|
||||
* This is the class that validates and merges configuration from your app/config files
|
||||
* This class validates and merges configuration from the files:
|
||||
* - config/packages/kimai.yaml
|
||||
* - config/packages/local.yaml
|
||||
*/
|
||||
class Configuration implements ConfigurationInterface
|
||||
{
|
||||
@@ -27,6 +29,17 @@ class Configuration implements ConfigurationInterface
|
||||
|
||||
$rootNode
|
||||
->children()
|
||||
->arrayNode('user')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->booleanNode('registration')
|
||||
->defaultTrue()
|
||||
->end()
|
||||
->booleanNode('password_reset')
|
||||
->defaultTrue()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('timesheet')
|
||||
->children()
|
||||
->booleanNode('duration_only')
|
||||
|
||||
Reference in New Issue
Block a user