Changes for page Registration

Last modified by John Stroy [Xino] on 2014/01/03 03:52

From version 1.1 Icon
edited by Vincent Massol
on 2011/03/17 13:07
Change comment: Imported from XAR
To version Icon 5.1 Icon
edited by John Stroy
on 2012/11/04 03:41
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +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