add config option for logging guest regs in admin room

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-13 20:19:10 -04:00 committed by June
parent e57051acd8
commit d95c02f575
4 changed files with 13 additions and 1 deletions

View file

@ -258,6 +258,8 @@ pub struct Config {
#[serde(default)]
pub allow_guest_registration: bool,
#[serde(default)]
pub log_guest_registrations: bool,
#[serde(default = "Vec::new")]
pub prevent_media_downloads_from: Vec<OwnedServerName>,
@ -509,6 +511,10 @@ impl fmt::Display for Config {
"Allow guest registration (inherently false if allow registration is false)",
&self.allow_guest_registration.to_string(),
),
(
"Log guest registrations in admin room",
&self.log_guest_registrations.to_string(),
),
("New user display name suffix", &self.new_user_displayname_suffix),
("Allow encryption", &self.allow_encryption.to_string()),
("Allow federation", &self.allow_federation.to_string()),