Function wasm_service_oauth::is_valid_username_token[][src]

pub fn is_valid_username_token(name: &str) -> bool

Test for valid syntax for github username (does not check whether the account actually exists). This check is to prevent XSS attacks on error page. Valid github username contains alphanumeric (US English) characters or single hyphens, and cannot begin or end with a hyphen, and is no more than 39 characters in length.