Skip to main content

check_https_url

Function check_https_url 

Source
pub fn check_https_url(
    label: &str,
    raw: &str,
    allow_path: bool,
) -> Result<(), String>
Expand description

The one spelling of a URL we accept: lowercase origin, default port dropped, no trailing slash. The phone app compares the portal origin byte for byte against the server tag it signs into a login, so a second spelling of the same site would break sign-in.