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

@ -40,7 +40,8 @@ class IdentityControllerCore extends FrontController
if (sizeof($_POST)) if (sizeof($_POST))
{ {
$exclusion = array('secure_key', $exclusion = array(
'secure_key',
'old_passwd', 'old_passwd',
'passwd', 'passwd',
'active', 'active',
@ -51,7 +52,8 @@ class IdentityControllerCore extends FrontController
'id_default_group', 'id_default_group',
'ip_registration_newsletter', 'ip_registration_newsletter',
'note', 'note',
'is_guest'); '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;