first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
class AuthController extends AuthControllerCore
{
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();
}
}
}