mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Captcha hasn't been comitted. So i commented out that stuff.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39380 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1fb1cfa978
commit
7d2f612ac8
@ -39,9 +39,10 @@ class PageCommentInterface extends ViewableData {
|
||||
$fields->push(new TextField("Math","Spam protection question: ".MathSpamProtection::getMathQuestion()));
|
||||
}
|
||||
|
||||
/*//TODO
|
||||
if(CaptchaSpamProtection::isEnabled()){
|
||||
$fields->push(new TextField("Captcha",CaptchaSpamProtection::getImage()."<br /><br />Please copy down the text from the image above"));
|
||||
}
|
||||
} */
|
||||
|
||||
$fields->push(new TextareaField("Comment", "Comments"));
|
||||
|
||||
@ -120,12 +121,13 @@ class PageCommentInterface_Form extends Form {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if(CaptchaSpamProtection::isEnabled()){
|
||||
if(!CaptchaSpamProtection::correctAnswer($data['Captcha'])){
|
||||
echo "<div class='BlogError'><p>You got the captcha protection question wrong.</p></div>";
|
||||
return;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
Cookie::set("PageCommentInterface_Name", $data['Name']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user