Added captcha to booking form. Deleted useless files.

This commit is contained in:
2024-02-13 10:37:55 +01:00
parent 1b1b566267
commit ab3e85573d
75 changed files with 309 additions and 5800 deletions
+7
View File
@@ -306,4 +306,11 @@ pub async fn delete_user(id: i32) -> Result<ApiResponse<()>, ServerFnError> {
info!("User deleted");
Ok(ApiResponse::Data(()))
}
#[server]
pub async fn get_pow() -> Result<String, ServerFnError> {
use leptos_captcha::spow::pow::Pow;
Ok(Pow::new(10)?.to_string())
}