add option for explicit opt-in allow open registration and make it clear

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-24 00:36:14 -05:00 committed by June
parent 5e641e2886
commit d214371423
4 changed files with 43 additions and 3 deletions

View file

@ -307,6 +307,13 @@ impl Service<'_> {
self.config.allow_guest_registration
}
pub fn yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse(
&self,
) -> bool {
self.config
.yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse
}
pub fn allow_encryption(&self) -> bool {
self.config.allow_encryption
}