feat: Add ReCaptcha registration flow

This commit is contained in:
nexy7574 2025-07-08 18:58:05 +01:00
commit 651d07a609
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F
6 changed files with 80 additions and 13 deletions

View file

@ -556,6 +556,10 @@ pub struct Config {
/// example: "/etc/continuwuity/.reg_token"
pub registration_token_file: Option<PathBuf>,
pub recaptcha_site_key: Option<String>,
pub recaptcha_private_site_key: Option<String>,
/// Controls whether encrypted rooms and events are allowed.
#[serde(default = "true_fn")]
pub allow_encryption: bool,