diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-19 01:45:42 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-19 01:45:42 +0200 |
commit | c2ba75793e78afb00223003ddfcbc05714bd01bf (patch) | |
tree | 1037691fa9cdb7e47258b678cc6a5a70107c85c5 /t | |
parent | 4b838fced8cd5fd2c24300e3f9132a1474051a76 (diff) | |
download | cforum-c2ba75793e78afb00223003ddfcbc05714bd01bf.tar.gz |
Add simple captcha
Diffstat (limited to 't')
-rw-r--r-- | t/head.t | 1 | ||||
-rw-r--r-- | t/newuser.t | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -4,6 +4,7 @@ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title><%= title %></title> <style type="text/css"> + form.hlite-captcha #captcha, form.hlite-confirm #confirm, form.hlite-name #name, form.hlite-full #full, diff --git a/t/newuser.t b/t/newuser.t index e62fdc2..7d53f0c 100644 --- a/t/newuser.t +++ b/t/newuser.t @@ -10,7 +10,7 @@ <td><input type="text" name="name" value="<% if(name) printhtml(name); %>"></td> </tr> <tr id="full"> - <td><label for="full">Full Name</label></td> + <td><label for="full">Full name</label></td> <td><input type="text" name="full" value="<% if(full) printhtml(full); %>"></td> <td><small>(optional)</small></td> </tr> @@ -22,6 +22,10 @@ <td><label for="confirm">Confirm</label></td> <td><input type="password" name="confirm" value=""></td> </tr> + <tr id="captcha"> + <td><label for="captcha">What is 2 + 7?</label></td> + <td><input type="text" name="captcha" value="<% if(captcha) printhtml(captcha); %>"></td> + </tr> </table> <p>By clicking <i>Create</i>, you confirm</p> <ol> |