Add warning on unconventional usernames

This commit is contained in:
dietrich 2020-10-02 09:50:02 +02:00
parent d4d3c0f0cf
commit 24db3e2579

View File

@ -42,7 +42,7 @@ impl<'a> TryFrom<&'a str> for Username<'a> {
if USERVALIDATION.is_match(source) {
Ok(Self { username: source })
} else if source == "Debian-exim" {
//warn!("username {} is not a valid username. This might cause problems. (It is default in Debian and Ubuntu)", source);
warn!("username {} is not a valid username. This might cause problems. (It is default in Debian and Ubuntu)", source);
Ok(Self { username: source })
} else {
Err(UserLibError::Message(format!(