Re-jigged some of the registration routes and modified the buttons/links to use them

This commit is contained in:
bwilliams committed 2022-02-10 14:52:48 +00:00
1 parent 7c319873b1
commit c3cf97ea50
6 files changed
+86 -16

No files matched your search

@@ -285,7 +285,7 @@ class OrganisationRegistrationController extends SimpleController
'name' => $organisation->name
]);
return $response->withRedirect($this->ci->router->pathFor('uri_organisation', ['slug' => $organisation->slug]));
return $response->withJson([], 200);
}
/**
@@ -433,7 +433,7 @@ class OrganisationRegistrationController extends SimpleController
'name' => $organisation->name
]);
return $response->withRedirect($this->ci->router->pathFor('uri_organisations'));
return $response->withJson([], 200);
}
/**
@@ -572,7 +572,7 @@ class OrganisationRegistrationController extends SimpleController
return $this->ci->view->render($response, 'modals/organisation.html.twig', [
'organisation' => $organisation,
'form' => [
'action' => 'api/organisations/register',
'action' => 'api/organisations/registeration',
'method' => 'POST',
'fields' => $fields,
'submit_text' => $translator->translate('REGISTER'),