add: cloudflare turnstile captcha

add: "popular communities" card in communities list
This commit is contained in:
trisua 2025-04-02 23:26:43 -04:00
parent 53cf75b53c
commit 131a38abb9
15 changed files with 288 additions and 11 deletions

View file

@ -188,11 +188,19 @@ pub fn routes() -> Router {
}
#[derive(Deserialize)]
pub struct AuthProps {
pub struct LoginProps {
pub username: String,
pub password: String,
}
#[derive(Deserialize)]
pub struct RegisterProps {
pub username: String,
pub password: String,
pub policy_consent: bool,
pub captcha_response: String,
}
#[derive(Deserialize)]
pub struct CreateCommunity {
pub title: String,