/// Create a template to offer the users options to register a new account.
Create a template to offer the users options to register a new account.
Create a template to offer the users options to register a new account .
pub fn register() -> Template {
    // Make list of identity providers in account creation configuration.
    let items: Vec<Map<String, Value>> = vec![
        //         item(
        //             GitHubOauth::register_path(),
        //             "btn-github mb-2",
        //             "Register using GitHub",
        //             Some("github"),
        //         ),
        item(
            DiscordOAuth::register_path(),
            "btn-discord mb-2",
            "Register using Discord",
            // This is manually coded for in the template file and is not
            // a Feather icon. Do not use it in other places, as it won't work.
            Some("discord"),
        ),
        //         item(
        //             RpiCas::register_path(),
        //             "btn-rpi",
        //             "Register using RPI CAS",
        //             None,
        //         ),
    ];
    // Create and return template.
    let mut template = empty();
    template[HEADER] = json!("Create Account");
    template[ITEMS] = json!(items);
    return template;
}
pub fn register ( ) -> Template { // Make list of identity providers in account creation configuration. let items : Vec < Map < String , Value > > = vec ! [ //         item( //             GitHubOauth::register_path(), //             "btn-github mb-2", //             "Register using GitHub", //             Some("github"), //         ), item ( DiscordOAuth register_path ( ) " " " " // This is manually coded for in the template file and is not // a Feather icon. Do not use it in other places, as it won't work. Some ( " " ) ) //         item( //             RpiCas::register_path(), //             "btn-rpi", //             "Register using RPI CAS", //             None, //         ), ] ; // Create and return template. let mut template = empty ( ) ; template [ HEADER ] = json ! ( " " ) ; template [ ITEMS ] = json ! ( items ) ; return template ; }
Create a template to offer the users options to register a new account.
Create a template to offer the users options to register a new account .