0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-14 14:02:23 +01:00

remove warn when sanitizing domain

This commit is contained in:
BlockListed 2023-02-07 18:49:26 +01:00
parent 5d1c11ceba
commit c04a1352cb
No known key found for this signature in database
GPG key ID: 2D204777C477B588

View file

@ -141,13 +141,7 @@ macro_rules! make_config {
)+)+
config.domain_set = _domain_set;
if config.domain_set {
if config.domain.ends_with('/') {
println!("[WARNING] The configured domain ends with a trailing slash.");
println!("[WARNING] The trailing slash is getting removed.");
config.domain = config.domain.trim_end_matches('/').to_string();
}
}
config.domain = config.domain.trim_end_matches('/').to_string();
config.signups_domains_whitelist = config.signups_domains_whitelist.trim().to_lowercase();
config.org_creation_users = config.org_creation_users.trim().to_lowercase();