feat: registration tokens

This commit is contained in:
Timo Kösters 2023-08-09 18:27:30 +02:00
parent 3e518773e2
commit c028e0553c
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
6 changed files with 37 additions and 15 deletions

View file

@ -46,6 +46,7 @@ pub struct Config {
pub max_fetch_prev_events: u16,
#[serde(default = "false_fn")]
pub allow_registration: bool,
pub registration_token: Option<String>,
#[serde(default = "true_fn")]
pub allow_encryption: bool,
#[serde(default = "false_fn")]