]> gitweb.factorcode.org Git - factor.git/commitdiff
wiki: add a recaptcha
authorSlava Pestov <slava@shill-2.local>
Sat, 7 May 2011 02:47:32 +0000 (19:47 -0700)
committerSlava Pestov <slava@shill-2.local>
Sat, 7 May 2011 02:47:32 +0000 (19:47 -0700)
extra/webapps/wiki/edit.xml
extra/webapps/wiki/wiki.factor

index f8c593cf2ff04654c0a6a274096399d31f4f9b97..3a67797d679cefe87f614a7bf18c2534eb019da9 100644 (file)
                        <t:field t:name="description" t:size="60" />
                </p>
 
+               <p>
+                       <t:recaptcha />
+               </p>
+
                <p>
                        <button type="submit">Save</button>
                </p>
index a150a6505ba704aeb92f50cc0c9beeed6d53cfbf..d9e1c05caa0f8d29bad379b4d3bf4d4629ba9d7f 100644 (file)
@@ -9,6 +9,7 @@ http.server
 http.server.dispatchers
 furnace.actions
 furnace.utilities
+furnace.recaptcha
 furnace.redirection
 furnace.auth
 furnace.auth.login
@@ -169,6 +170,8 @@ M: revision feed-entry-url id>> revision-url ;
 : <submit-article-action> ( -- action )
     <action>
         [
+            validate-recaptcha
+
             validate-title
 
             {