diff options
Diffstat (limited to 'haunt/jakob/dynamic/capabilities/comment-form.scm')
| -rw-r--r-- | haunt/jakob/dynamic/capabilities/comment-form.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/haunt/jakob/dynamic/capabilities/comment-form.scm b/haunt/jakob/dynamic/capabilities/comment-form.scm index 1754dfd..f1cbd9e 100644 --- a/haunt/jakob/dynamic/capabilities/comment-form.scm +++ b/haunt/jakob/dynamic/capabilities/comment-form.scm @@ -21,6 +21,7 @@ #:use-module (jakob dynamic captcha) #:use-module (jakob dynamic util) #:use-module (jakob theme) + #:use-module (jakob utils sxml) #:use-module (json) #:use-module (srfi srfi-1) #:use-module (srfi srfi-11) @@ -56,7 +57,12 @@ (img (@ (src ,(format #f "data:image/jpeg;charset=utf-8;base64,~a" (base64-encode captcha-image))))) (input (@ (type "text") (id "captcha") (name "captcha") (size 24))) - (input (@ (type "submit") (id "submit-form") (value "Submit"))))))))) + (button (@ (id "pow-trigger") (hidden #t)) + "Too hard? (Or unable to see the challenge?) Click here.") + (input (@ (type "text") (id "captcha-alt") (name "captcha-alt") (hidden #t))) + (input (@ (type "text") (id "captcha-alt-id") (name "captcha-alt-id") (hidden #t))) + (input (@ (type "submit") (id "submit-form") (value "Submit"))))) + ,(script "proof-of-work.js"))))) (define (get-comment-form request body) "API endpoint handler for querying for the comments on a particular post |