add: move database drivers to oiseau

This commit is contained in:
trisua 2025-06-08 14:15:42 -04:00
parent 40fce4bc77
commit 81036e3733
57 changed files with 638 additions and 1106 deletions

View file

@ -46,7 +46,7 @@ pub async fn register_request(
// get real ip
let real_ip = headers
.get(data.0.security.real_ip_header.to_owned())
.get(data.0.0.security.real_ip_header.to_owned())
.unwrap_or(&HeaderValue::from_static(""))
.to_str()
.unwrap_or("")
@ -62,7 +62,7 @@ pub async fn register_request(
}
// check captcha
let client = TurnstileClient::new(data.0.turnstile.secret_key.clone().into());
let client = TurnstileClient::new(data.0.0.turnstile.secret_key.clone().into());
let validated = match client
.siteverify(SiteVerifyRequest {
@ -126,7 +126,7 @@ pub async fn login_request(
// get real ip
let real_ip = headers
.get(data.0.security.real_ip_header.to_owned())
.get(data.0.0.security.real_ip_header.to_owned())
.unwrap_or(&HeaderValue::from_static(""))
.to_str()
.unwrap_or("")