Changes for page Registration

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

From 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]
To 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]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.teamwire004
1 +XWiki.teamwire005
Content
... ... @@ -308,11 +308,9 @@
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 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
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
316 316   #if($allFieldsValid)
317 317   #createUser($fields, $request, $response, $doAfterRegistration)
318 318   #end