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 86685c1cd2f8d1d8771bcd97d5dd5aa3c3efd4b9
parent e4d08836e2ccc8bd4f1b926f306aa881f26a33d8
Author: Jeremy Lin <jjlin@cs.stanford.edu>
Date:   Sat, 11 Apr 2020 14:51:36 -0700

Ensure email domain comparison is case-insensitive

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

diff --git a/src/config.rs b/src/config.rs @@ -566,7 +566,7 @@ impl Config { warn!("Failed to parse email address '{}'", email); return false; } - let email_domain = e[0]; + let email_domain = e[0].to_lowercase(); let whitelist = self.signups_domains_whitelist(); !whitelist.is_empty() && whitelist.split(',').any(|d| d.trim() == email_domain)