Changes for page Registration
on 2012/11/04 03:41
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 - xwiki:XWiki.VincentMassol1 +XWiki.jdstroy - Content
-
... ... @@ -264,6 +264,29 @@ 264 264 $userDoc.saveWithProgrammingRights("Saved favorite color from registration form.") 265 265 #end 266 266 ## *### 267 + 268 +## Are you a spammer? 269 +#set($field = 270 + {'name' : 'vernis_barmaid_name', 271 + 'label' : 'What is the name of the barmaid of Vernis?', 272 + 'params' : { 273 + 'type' : 'text', 274 + 'size' : '60' 275 + }, 276 + 'validate' : { 277 + 'mandatory' : { 278 + 'failureMessage' : $msg.get('core.validation.required.message') 279 + }, 280 + 'regex' : { 281 + 'pattern' : '/^shena$/i', 282 + 'failureMessage' : 'That is incorrect. Please try again.' 283 + } 284 + } 285 + }) 286 +#set($discard = $fields.add($field)) 287 + 288 + 289 +## 267 267 ## To disable the captcha on this page, comment out the next two entries. 268 268 ## The captcha image, not an input field but still defined the same way. 269 269 #if($captchaservice