Update configuration with auth.csv and log sections

This commit is contained in:
George Kaklamanos 2023-11-30 17:18:00 +02:00
parent 9811fe5676
commit e32d6ce118
2 changed files with 10 additions and 1 deletions

View file

@ -22,7 +22,7 @@ pub fn auth(cli: &cli::Cli, config: ConfigBuilder<DefaultState>) -> Result<(), (
for backend in backends {
let acl = match backend {
#[cfg(feature = "csv")]
cli::Backend::CSV => config.get::<cli::CSV>("csv").unwrap().to_config().new(),
cli::Backend::CSV => config.get::<cli::CSV>("auth.csv").unwrap().to_config().new(),
};
match &cli.command {
cli::Command::Open(cliargs) => {

View file

@ -14,9 +14,18 @@ pin = 1
active_low = false
active_time = 2000
[log]
backends = ["csv"]
[log.csv]
path = "./labadoor-csv"
[auth]
backends = ["csv"]
[auth.csv]
path = "./labadoor-csv"
[open.auth]
labadoor = [ "/usr/bin/labadoor", "auth" ]