Skip to main content

Module email_validate

Module email_validate 

Source

Re-exportsยง

use std::net::IpAddr; ๐Ÿ”’
use axum::extract::Form; ๐Ÿ”’
use axum::extract::Request; ๐Ÿ”’
use axum::extract::State; ๐Ÿ”’
use axum::response::Html; ๐Ÿ”’
use axum::response::IntoResponse; ๐Ÿ”’
use axum::response::Response; ๐Ÿ”’
use const_str::format as const_format; ๐Ÿ”’
use http::StatusCode; ๐Ÿ”’
use http::header::CACHE_CONTROL; ๐Ÿ”’
use http::header::REFERRER_POLICY; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use tuwunel_core::utils::html::escape as html_escape; ๐Ÿ”’
use crate::ClientIp; ๐Ÿ”’

Structsยง

ValidateParams ๐Ÿ”’

Staticsยง

CONFIRM_HTML ๐Ÿ”’
ERROR_HTML ๐Ÿ”’
GENERIC_FAILURE ๐Ÿ”’
RESULT_HTML ๐Ÿ”’
VALIDATE_HEAD ๐Ÿ”’

Functionsยง

confirm_html ๐Ÿ”’
error_html ๐Ÿ”’
get_email_validate_route ๐Ÿ”’
GET /_tuwunel/3pid/email/validate
post_email_validate_route ๐Ÿ”’
POST /_tuwunel/3pid/email/validate
rate_limited ๐Ÿ”’
result_html ๐Ÿ”’
validate_html ๐Ÿ”’