Skip to content

Commit

Permalink
[stable-16.10.x] XWIKI-22706: The text on registration page is cut af…
Browse files Browse the repository at this point in the history
…ter applying invalid input | XWIKI-22706: The text on registration page is cut after applying invalid input | XWIKI-22706: The text on registration page is cut after apply (#3837)

* XWIKI-22706: The text on registration page is cut after applying invalid input
* WIP

(cherry picked from commit 651d317)

* XWIKI-22706: The text on registration page is cut after applying invalid input
* Trimmed the output of the validation script so that it doesn't disturb the layout when there's no error message.

(cherry picked from commit 3d66118)

* XWIKI-22706: The text on registration page is cut after applying invalid input
* Fixed typo.

(cherry picked from commit a465794)

---------

Co-authored-by: LucasC <[email protected]>
  • Loading branch information
github-actions[bot] and Sereza7 authored Jan 24, 2025
1 parent d5e463d commit a206731
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@
## If the submit button has been pressed, then we test the input and maybe create the user.
#if($request.getParameter('xwikiname'))
## Do server side validation of input fields.
## This must not be in a #set directive as it will output messages if something goes wrong.
#validateFields($fields, $request)
## If server side validation was successfull, create the user
## This will output messages if something goes wrong, nothing if everything is alright.
## We need to trim the output so that we can keep indentations in the validation script.
#set ($validationText = $stringtool.trim("#validateFields($fields, $request)"))
$validationText##
## If server side validation was successful, create the user
#if($allFieldsValid)
#createUser($fields, $request, $response, $doAfterRegistration)
#end
Expand Down

0 comments on commit a206731

Please sign in to comment.