On change de module de Captcha
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
class AuthController extends AuthControllerCore
|
||||
{
|
||||
|
||||
/**
|
||||
* Surcharge specifique eicaptcha
|
||||
*/
|
||||
public function initContent()
|
||||
{
|
||||
if ( Tools::isSubmit('submitCreate') ) {
|
||||
Hook::exec('actionContactFormSubmitCaptcha');
|
||||
|
||||
if ( ! sizeof( $this->context->controller->errors ) ) {
|
||||
parent::initContent();
|
||||
} else {
|
||||
$register_form = $this
|
||||
->makeCustomerForm()
|
||||
->setGuestAllowed(false)
|
||||
->fillWith(Tools::getAllValues());
|
||||
|
||||
FrontController::initContent();
|
||||
|
||||
$this->context->smarty->assign([
|
||||
'register_form' => $register_form->getProxy(),
|
||||
'hook_create_account_top' => Hook::exec('displayCustomerAccountFormTop')
|
||||
]);
|
||||
$this->setTemplate('customer/registration');
|
||||
}
|
||||
} else {
|
||||
parent::initContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user