hcaptcha 3.2.0

hCaptcha client response verification. Validate the hCaptcha response submitted from to your server from the client.
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(())
}