Function login_name

Source
pub fn login_name(name: &str) -> Result<String, String>
Expand description

Validate and canonicalize a login name without treating it as a path or owner. Accept 1–64 ASCII letters, digits, dots, underscores or hyphens, with at least one letter or digit. The canonical spelling is lowercase.