Skip to content

Releases: dominiquevienne/honeypot

Minor class bug resolution for Drupal FAPI elements

31 Aug 10:00
Compare
Choose a tag to compare

A simple update on FAPI elements. Class is intended to be an array.

Drupal 8 FAPI - Bugs resolution

30 Aug 08:42
Compare
Choose a tag to compare

Some bugs were detected when integrating Honeypot in Drupal modules due to the way Drupal FAPI instanciate forms.
Honeypot and token values were unreachable which has been corrected.

Increase failure counter on check is public

30 Aug 13:33
Compare
Choose a tag to compare

The increaseFailureCounter() function is now public so any developer can increase this counter on data validation in addition of honeypot specific checks.
Timer is also resetted after check in order to get the right value.

Drupal FAPI fields

22 Aug 13:06
Compare
Choose a tag to compare

This version enables the possibility to output Drupal FAPI elements instead of RAW HTML.
Documentation has been updated and example added.

Token field type is hidden

21 Aug 15:22
Compare
Choose a tag to compare

Default value for token field type is now hidden
Possibility has been added to set this value through configuration array on object construct

Code of conduct and Contributing

21 Aug 09:49
Compare
Choose a tag to compare

This release includes code of conduct and contributing guidelines.
Minor version.

Working example

17 Aug 08:49
Compare
Choose a tag to compare

In this release, two updates:

  • resolving a minor bug happening on check when form submission is a success (tried to access a non-defined index in $_SESSION)
  • added a working example in "example" directory. Please read comments in order to make it work.

More doc on JS

09 Aug 06:47
Compare
Choose a tag to compare

The readme.md has been updated concerning JS script that will, by defaut, remove the honeypot field.

JS Field remover

08 Aug 13:26
Compare
Choose a tag to compare

In this release, we added a Javascript that will automatically remove the Honeypot form field from the DOM.
Bots majority do not enable Javascript so this will lead to a more difficult task to pass the tests.
No need for any JS framework like jQuery... only pure JS!

A bunch of checks

03 Aug 09:35
Compare
Choose a tag to compare

This release contains all necessary checks for a Honeypot.

  • timeCheck: minimum form completion time
  • honeypotCheck: presence of an empty value in generated input
  • tokenCheck: presence of a valid auto-generated token
  • failureCheck: maximum failure attempts check
  • quantityCheck: maximum attempts checks

Any of these checks could be configured through constructor or using specific functions.