Modif de la route pour la création de client, pour les pbs de faux clients

This commit is contained in:
2020-12-02 22:05:50 +01:00
parent 3b37f839e2
commit f97c314056
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
<default key="_controller">Front\Controller\CustomerController::viewRegisterAction</default>
</route>
<route id="customer.create.process" path="/register" methods="post">
<route id="customer.create.process" path="/registerCustomer" methods="post">
<default key="_controller">Front\Controller\CustomerController::createAction</default>
<default key="_view">register</default>
</route>

View File

@@ -15,7 +15,7 @@
<h1 id="main-label" class="page-header">{intl l="Create New Account"}</h1>
{form name="thelia.front.customer.create"}
<form id="form-register" class="form-horizontal" action="{url path="/register"}" method="post">
<form id="form-register" class="form-horizontal" action="{url path="/registerCustomer"}" method="post">
{form_field form=$form field='success_url'}
<input type="hidden" name="{$name}" value="{url path="/account"}" /> {* the url the user is redirected to on registration success *}
{/form_field}