From 7e447765fea7c7a47d7da97d478f48f96b8a1ea1 Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 25 Dec 2023 15:11:08 -0500 Subject: [PATCH] remove warning in error message, drop 2nd error down to warn Signed-off-by: strawberry --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef31be44..586343ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,7 +159,7 @@ async fn main() { if config.allow_registration && !config.yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse { - error!("!! WARNING: You have `allow_registration` enabled in your config which means you are allowing ANYONE to register on your conduwuit instance without any 2nd-step (e.g. registration token).\n + error!("!! You have `allow_registration` enabled in your config which means you are allowing ANYONE to register on your conduwuit instance without any 2nd-step (e.g. registration token).\n If this is not the intended behaviour, please disable `allow_registration` and set a registration token.\n For security and safety reasons, conduwuit will shut down. If you are extra sure this is the desired behaviour you want, please set the following config option to true: `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`"); @@ -169,7 +169,7 @@ async fn main() { if config.allow_registration && config.yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse { - error!("Open registration is enabled via setting `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse` and `allow_registration` to true. You are expected to be aware of the risks now.\n + warn!("Open registration is enabled via setting `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse` and `allow_registration` to true. You are expected to be aware of the risks now.\n If this is not the desired behaviour, please disable `allow_registration` and set a registration token."); }