summaryrefslogtreecommitdiff
path: root/modules/recaptcha
AgeCommit message (Collapse)Author
2009-11-09Revert "Try an new approach to extending forms. Create an extend_form ↵Tim Almdal
event. For the first attempt replace the comment_add_form and item_add_form events." This reverts commit 809e738536b6639bb42ecae8eb1e183543fed93c.
2009-11-03Merge branch 'master' into talmdal_devTim Almdal
2009-11-03Add a register_add_form event handler to recaptcha to add the recaptcha to ↵Tim Almdal
the bottom of the user registration form in the register module.
2009-11-03Delay initializing the recaptcha to allow the recaptcha JS to load andBharat Mediratta
initialize. Fixes ticket #851.
2009-11-02Merge branch 'master' into talmdal_devTim Almdal
2009-11-02Add a recaptcha_theme file so we can actually include the recaptcha.css file ↵Tim Almdal
so the recaptcha doesn't looking... interesting.
2009-11-01Try an new approach to extending forms. Create an extend_form event. For ↵Tim Almdal
the first attempt replace the comment_add_form and item_add_form events.
2009-10-31Revert "Cleanup typo and change what is passwed into the event. pass the ↵Tim Almdal
group that the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form." Revert "Generalize the adding of the recaptcha form by changing the name of the event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha." This reverts commits e45ea9359d6cb603be0bc28376d92883aa8d7c7e and bfafef95e8090b66f3322f73e532056b10ca116a.
2009-10-29Cleanup typo and change what is passwed into the event. pass the group that ↵Tim Almdal
the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form.
2009-10-29Generalize the adding of the recaptcha form by changing the name of the ↵Tim Almdal
event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha.
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-25Move comment and recaptcha CSS to their respective modules. Chad Kieffer
2009-10-18Wrap all admin views in g-block and g-block content. This provides the means ↵Chad Kieffer
to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-05Change the module installer so that you don't need to provide your ownBharat Mediratta
install() function if all you're going to do is to set the version of the module from module.info into the database. This means that for some simple modules, you don't need an install.php file at all.
2009-09-01Add missing mark_clean() for t() calls with %attr parameter.Andy Staudacher
2009-09-01XSS / style fixes for newly detected issues (after fixing XSS scanner)Andy Staudacher
2009-08-31Rename mark_safe() to mark_clean()Andy Staudacher
2009-08-30Change all instances of SafeString::of_safe_html() to html::mark_safe() in ↵Andy Staudacher
views.
2009-08-29Undo url helper changes - url methods no longer return a SafeString.Andy Staudacher
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-07-28Use events to generate menus, instead of having xxx_menu helpers.Bharat Mediratta
This is the first step towards having a simple, lightweight and unified API for module interaction.
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
test to make sure that we continue to do so. This makes sure that we don't have problems with 5.3 which treats the literal "on" as a boolean.
2009-07-07More fixes for ticket 470 (capitalization of reCAPTCHA)Andy Staudacher
2009-07-02Fix for ticket 470. Replace ReCaptcha with reCAPTCHA in user visible strings.Andy Staudacher
2009-06-27Clean up poor english. Use the latest recaptcha info from their website. ↵Bharat Mediratta
Fixes ticket #470.
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-17Add "custom_translations" instruction to captcha form builder to add ↵unostar
possibility to localize and customize form.
2009-06-15Added "cutom_translations" instruction to Recaptcha to localize & cutomize ↵unostar
recaptcha message.
2009-06-09Remove double quotes from module.info (theme.info) attribute values.Andy Staudacher
(actually, we did that before: Now removing HTML element attributes since they were delimited by single quotes because PHP's ini parser can't deal with double-quotes in values.) Background: Requiring all l10n messages a) to be well-formed HTML and b) to use double-quotes as HTML element attributes, since the l10n server side validation normalizes all attribute delimiters to double-quotes). See ticket #254.
2009-06-06fix typo: "the the" -> "the" (thanks VENCO!)Bharat Mediratta
2009-06-06Properly localize domain url in recaptcha explanation.Bharat Mediratta
2009-06-02fix preamble so file structure test passesTim Almdal
2009-06-01Move recaptcha widget into a view for clarity. Also, wrap it in aBharat Mediratta
setTimeout() call so that on subsequent reloads (which happen when you fail to validate the form) it has time to rebuild the DOM before calling the JS which tries to inject the Recaptcha HTML. Fixes ticket #327
2009-06-01Merge branch 'master' of git@github.com:gallery/gallery3andyst
2009-06-01Workaround for parse_ini_file issue: There's no way to escape a double-quote ↵Andy
in a value that's read with parse_ini_file. Using single quotes instead, even if that's not the best style in English.
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.
2009-05-31Clear the site status message on deactivate, not on uninstall.Bharat Mediratta
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-03-16Remove unused orig_public_key from the form, it wasn't actually doing ↵Bharat Mediratta
anything (and was causing an error).
2009-02-05Don't try to show the recaptcha if we don't have a public keyBharat Mediratta
2009-01-30Correct indentationTim Almdal
2009-01-28Add module name to log::success() callsBharat Mediratta
2009-01-28Simplify the recaptcha admin page. It's not guaranteed to verify yourBharat Mediratta
recaptcha private key properly anymore, but it's more intuitive to configure in the admin UI.
2009-01-27Make the comment -> recaptcha binding happen via an event dispatch asBharat Mediratta
opposed to a direct call.
2009-01-26Forgot to add the Form_Recaptcha classTim Almdal
2009-01-26Adding Recaptcha to the comment module. Recaptcha integration consists of a ↵Tim Almdal
Form_Recaptcha class derived from Form_Input that can be added to any class that requires Recaptcha verfication.
2009-01-25Removed all the complex code to locate the forms. Now the adminTim Almdal
screen just has the public and private keys and if the public key is provided a recaptcha box shows up which is used to validate the public private key pair.
2009-01-25Added the ability to identify and present the defined forms to theTim Almdal
adminstrator. The forms are presented as a checklist, I would have preferred a selection list, but Forge doesn't have one. The generated html to contain the recaptcha challenge is defined as <ul> as that was the only way to force itto line up.
2009-01-24Supply a form id on all forms. This id can be used by modules otherTim Almdal
than the originating module to provide additional functionality to the form.