hcaptcha 3.2.6

hCaptcha client-side response verification: it validates the hCaptcha token your server receives from the client before trusting the submission.
Documentation
// SPDX-FileCopyrightText: 2022 jerusdp
//
// SPDX-License-Identifier: MIT OR Apache-2.0

use crate::handler::error::ContactError;
use crate::handler::ContactForm;
use tracing::instrument;

#[instrument(name = "send notification to info mailbox", skip(_contact_form))]
pub async fn notify_office(_contact_form: &ContactForm) -> Result<(), ContactError> {
    // Construct email and send message to the office info mailbox

    Ok(())
}

#[instrument(name = "Send notification to the contact", skip(_contact_form))]
pub async fn notify_contact(_contact_form: &ContactForm) -> Result<(), ContactError> {
    // Construct and send email to the contact

    Ok(())
}