Fix invalid route on form

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-10-22 09:47:50 +02:00
parent ab4bccdc1a
commit c20fd7321a
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
/** @var \OCP\IL10N $l */ /** @var \OCP\IL10N $l */
style('registration', 'style'); style('registration', 'style');
script('registration', 'form'); script('registration', 'form');
?><form action="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('registration.register.createAccount', ['token'=>$_['token']])) ?>" method="post"> ?><form action="" method="post">
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" /> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
<fieldset> <fieldset>
<?php if (!empty($_['errormsgs'])) {?> <?php if (!empty($_['errormsgs'])) {?>