Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
Signed-off-by: bumpsoo <bumpsoo063@protonmail.ch>
  • Loading branch information
bumpsoo committed Jan 5, 2025
1 parent 1f30b26 commit 6bbbda4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion conduwuit-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@

# A static registration token that new users will have to provide when
# creating an account. If unset and `allow_registration` is true,
# you must set `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
# you must set
# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
# to true to allow open registration without any conditions.
#
# YOU NEED TO EDIT THIS OR USE registration_token_file.
Expand Down
7 changes: 6 additions & 1 deletion src/core/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,17 @@ pub struct Config {
#[serde(default)]
pub allow_registration: bool,

/// Enabling this setting opens registration to anyone without restrictions.
/// This makes your server vulnerable to abuse
///
#[serde(default)]
pub yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse: bool,

/// A static registration token that new users will have to provide when
/// creating an account. If unset and `allow_registration` is true,
/// registration is open without any condition.
/// you must set
/// `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
/// to true to allow open registration without any conditions.
///
/// YOU NEED TO EDIT THIS OR USE registration_token_file.
///
Expand Down

0 comments on commit 6bbbda4

Please sign in to comment.