Skip to main content

post_settings

Function post_settings 

Source
pub fn post_settings(
    form: Form<SettingsForm>,
    session: Option<AdminSession>,
    config_file: &State<ConfigFile>,
) -> Result<Redirect, AdminReject>
Expand description

Human write path: a native form POST from the Settings page; persists, then redirects back. Gated by the signed-in AdminSession cookie (the Settings screen is signed-in-only; anonymous → sign-in).