auniverseaway / slick-2

A blogging engine written for Apache Sling 8.
Apache License 2.0
31 stars 14 forks source link

make code to communicate with reCaptcha easier to read and understand #32

Open chrismade opened 6 years ago

chrismade commented 6 years ago

proposal / improvement - the current code in function validateCaptcha in file /core/src/main/java/org/millr/slick/servlets/comment/EditComment.java could be made easier to read and understand, e.g.

the function seems to work as it is currently - but in case of troubleshooting - e.g. if connect to https://www.google.com/recaptcha/api/siteverify is not working - a more straight forward code might be helpful