Mercurial > lbo > hg > geohub
view src/ids.rs @ 63:fa2a46761712
Fix missed notifications for upper case IDs
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Fri, 04 Dec 2020 14:25:41 +0100 |
parents | 08b4f7127980 |
children |
line wrap: on
line source
/// Check if client name and secret are acceptable. pub fn name_and_secret_acceptable(client: &str, secret: Option<&str>) -> bool { !(client.chars().any(|c| !c.is_ascii_alphanumeric()) || secret .unwrap_or("") .chars() .any(|c| !c.is_ascii_alphanumeric())) }