vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 480ba933fa01f2fa09e515fe238784c4cd3c2576
parent 3d1ee9ef620b06d2386973c39860be914fddb1e7
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Thu, 30 Jan 2020 22:10:50 +0100

Don't error if admin token is empty but disabled

Diffstat:
Msrc/config.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.rs b/src/config.rs @@ -405,7 +405,7 @@ fn validate_config(cfg: &ConfigItems) -> Result<(), Error> { } if let Some(ref token) = cfg.admin_token { - if token.trim().is_empty() { + if token.trim().is_empty() && !cfg.disable_admin_token { err!("`ADMIN_TOKEN` is enabled but has an empty value. To enable the admin page without token, use `DISABLE_ADMIN_TOKEN`") } }