[-] FO : removed deprecated configuration var "PS_VOUCHERS" #PSCFV-5240
// Removed useless DOS protection
This commit is contained in:
@@ -277,11 +277,7 @@ class AuthControllerCore extends FrontController
|
|||||||
$customer = new Customer();
|
$customer = new Customer();
|
||||||
$authentication = $customer->getByEmail(trim($email), trim($passwd));
|
$authentication = $customer->getByEmail(trim($email), trim($passwd));
|
||||||
if (!$authentication || !$customer->id)
|
if (!$authentication || !$customer->id)
|
||||||
{
|
|
||||||
// Handle brute force attacks
|
|
||||||
sleep(1);
|
|
||||||
$this->errors[] = Tools::displayError('Authentication failed');
|
$this->errors[] = Tools::displayError('Authentication failed');
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->context->cookie->id_compare = isset($this->context->cookie->id_compare) ? $this->context->cookie->id_compare: CompareProduct::getIdCompareByIdCustomer($customer->id);
|
$this->context->cookie->id_compare = isset($this->context->cookie->id_compare) ? $this->context->cookie->id_compare: CompareProduct::getIdCompareByIdCustomer($customer->id);
|
||||||
|
|||||||
@@ -143,9 +143,6 @@
|
|||||||
<configuration id="PS_DISP_UNAVAILABLE_ATTR" name="PS_DISP_UNAVAILABLE_ATTR">
|
<configuration id="PS_DISP_UNAVAILABLE_ATTR" name="PS_DISP_UNAVAILABLE_ATTR">
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration id="PS_VOUCHERS" name="PS_VOUCHERS">
|
|
||||||
<value>1</value>
|
|
||||||
</configuration>
|
|
||||||
<configuration id="PS_SEARCH_MINWORDLEN" name="PS_SEARCH_MINWORDLEN">
|
<configuration id="PS_SEARCH_MINWORDLEN" name="PS_SEARCH_MINWORDLEN">
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class BlockMyAccount extends Module
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
$this->smarty->assign(array(
|
$this->smarty->assign(array(
|
||||||
'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'),
|
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||||
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'),
|
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'),
|
||||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock'),
|
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock'),
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class Blockmyaccountfooter extends Module
|
|||||||
if (!$params['cookie']->isLogged())
|
if (!$params['cookie']->isLogged())
|
||||||
return false;
|
return false;
|
||||||
$smarty->assign(array(
|
$smarty->assign(array(
|
||||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||||
));
|
));
|
||||||
@@ -95,7 +95,7 @@ class Blockmyaccountfooter extends Module
|
|||||||
global $smarty;
|
global $smarty;
|
||||||
|
|
||||||
$smarty->assign(array(
|
$smarty->assign(array(
|
||||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user