Changes for page Registration

Last modified by teamwire004 on 2025/04/01 07:23

From version 4.1
edited by teamwire005
on 2025/01/07 08:37
Change comment: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/16.10.2]
To version 5.1
edited by teamwire004
on 2025/02/04 08:16
Change comment: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/16.10.3]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.teamwire005
1 +XWiki.teamwire004
Content
... ... @@ -308,9 +308,11 @@
308 308   ## If the submit button has been pressed, then we test the input and maybe create the user.
309 309   #if($request.getParameter('xwikiname'))
310 310   ## Do server side validation of input fields.
311 - ## This must not be in a #set directive as it will output messages if something goes wrong.
312 - #validateFields($fields, $request)
313 - ## If server side validation was successfull, create the user
311 + ## This will output messages if something goes wrong, nothing if everything is alright.
312 + ## We need to trim the output so that we can keep indentations in the validation script.
313 + #set ($validationText = $stringtool.trim("#validateFields($fields, $request)"))
314 + $validationText##
315 + ## If server side validation was successful, create the user
314 314   #if($allFieldsValid)
315 315   #createUser($fields, $request, $response, $doAfterRegistration)
316 316   #end