Re-jigged some of the registration routes and modified the buttons/links to use them
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user