This commit is contained in:
Michael RICOIS 2018-02-09 09:30:13 +01:00
parent 20fd85c5fb
commit b67de1c311
2 changed files with 21 additions and 16 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
/* /*
* 2007-2011 PrestaShop * 2007-2011 PrestaShop
* *
* NOTICE OF LICENSE * NOTICE OF LICENSE
* *
@ -40,18 +40,20 @@ class IdentityControllerCore extends FrontController
if (sizeof($_POST)) if (sizeof($_POST))
{ {
$exclusion = array('secure_key', $exclusion = array(
'old_passwd', 'secure_key',
'passwd', 'old_passwd',
'active', 'passwd',
'date_add', 'active',
'date_upd', 'date_add',
'last_passwd_gen', 'date_upd',
'newsletter_date_add', 'last_passwd_gen',
'id_default_group', 'newsletter_date_add',
'ip_registration_newsletter', 'id_default_group',
'note', 'ip_registration_newsletter',
'is_guest'); 'note',
'is_guest'
);
$fields = $customer->getFields(); $fields = $customer->getFields();
foreach ($fields AS $key => $value) foreach ($fields AS $key => $value)
if (!in_array($key, $exclusion)) if (!in_array($key, $exclusion))

View File

@ -1,11 +1,14 @@
<?php <?php
class IdentityController extends IdentityControllerCore { class IdentityController extends IdentityControllerCore
public function preProcess() { {
public function preProcess()
{
self::$smarty->assign(array('HOOK_PROFILE_EDIT' => Module::hookExec('profileEdit'))); self::$smarty->assign(array('HOOK_PROFILE_EDIT' => Module::hookExec('profileEdit')));
parent::preProcess(); parent::preProcess();
} }
public function setMedia() { public function setMedia()
{
parent::setMedia(); parent::setMedia();
global $css_files; global $css_files;