Typo3 validating the security token of this form
Basic usage The most straightforward way is to supply an associative array as the “options” parameter.
If a file has been uploaded successfully and the form is re-displayed due to validation errors, this View Helper will render hidden fields that contain the previously generated resource so you won’t have to upload the file again.Line 65-71: We check if the username has a miminum length of 3 and if the passwords that have been entered match.Line 72: We use the object manager to create a new account. The last parameter is the default role for the account.Line 73: We add the user to the account repository. Here we call the authenticate action that is described above.We don't check the username and password by ourself. That this works we need to name the arguments (username, password) in the correct way, so that FLOW3 knows where to look.