mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 05:16:22 +02:00
feat(recaptcha): Disable treating captcha-enabled servers as abuse-prone
This commit is contained in:
parent
df1cb10a8e
commit
e4a6abe15e
1 changed files with 8 additions and 6 deletions
|
@ -184,15 +184,17 @@ pub fn check(config: &Config) -> Result {
|
||||||
&& !config.yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse
|
&& !config.yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse
|
||||||
&& config.registration_token.is_none()
|
&& config.registration_token.is_none()
|
||||||
&& config.registration_token_file.is_none()
|
&& config.registration_token_file.is_none()
|
||||||
|
&& !(config.recaptcha_site_key.is_some() && config.recaptcha_private_site_key.is_some())
|
||||||
{
|
{
|
||||||
return Err!(Config(
|
return Err!(Config(
|
||||||
"registration_token",
|
"registration_token",
|
||||||
"!! You have `allow_registration` enabled without a token configured in your config \
|
"!! You have `allow_registration` enabled without a token or captcha configured \
|
||||||
which means you are allowing ANYONE to register on your conduwuit instance without \
|
which means you are allowing ANYONE to register on your continuwuity instance \
|
||||||
any 2nd-step (e.g. registration token). If this is not the intended behaviour, \
|
without any 2nd-step (e.g. registration token, captcha), which is FREQUENTLY \
|
||||||
please set a registration token. For security and safety reasons, conduwuit will \
|
abused by malicious actors. If this is not the intended behaviour, please set a \
|
||||||
shut down. If you are extra sure this is the desired behaviour you want, please \
|
registration token. For security and safety reasons, continuwuity will shut down. \
|
||||||
set the following config option to true:
|
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`"
|
`yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue