Add warning on unconventional usernames
This commit is contained in:
		
							parent
							
								
									d4d3c0f0cf
								
							
						
					
					
						commit
						24db3e2579
					
				| @ -42,7 +42,7 @@ impl<'a> TryFrom<&'a str> for Username<'a> { | |||||||
|         if USERVALIDATION.is_match(source) { |         if USERVALIDATION.is_match(source) { | ||||||
|             Ok(Self { username: source }) |             Ok(Self { username: source }) | ||||||
|         } else if source == "Debian-exim" { |         } 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 }) |             Ok(Self { username: source }) | ||||||
|         } else { |         } else { | ||||||
|             Err(UserLibError::Message(format!( |             Err(UserLibError::Message(format!( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user