Merge pull request #177 from NixOS/new-captcha

New captcha
This commit is contained in:
lassulus 2025-02-22 09:46:33 +07:00 committed by GitHub
commit 9c10424faa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,8 +69,7 @@ in
extraConfig = '' extraConfig = ''
# docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha # docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha
$wgCaptchaQuestions = [ $wgCaptchaQuestions = [
"What Linux distribution is this wiki about?" => [ 'nixos', 'NixOS', 'NIXOS', 'Nixos' ], "What is the output of this command: nix-instantiate --raw --eval --expr 'builtins.hashString \"sha256\" \"NixOS wiki\"' ?" => "62e65110a5a6fa4f08256f7d9ee3461412babb37dc0955531b79dcf9732c9c91"
"What is the package manager of NixOS called?" => [ 'Nix', 'nix', 'NIX' ],
]; ];
wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]); wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]);
@ -176,7 +175,7 @@ in
$wgEnotifUserTalk = true; $wgEnotifUserTalk = true;
# Block spam by regex # Block spam by regex
$wgSpamRegex = ["/seo (software|tools)|pornstars|casino|gambling|viagra/i"]; $wgSpamRegex = ["/seo (software|tools)|adult toys|pornstars|casino|gambling|viagra/i"];
''; '';
}; };