CS
This commit is contained in:
parent
20fd85c5fb
commit
b67de1c311
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -40,18 +40,20 @@ class IdentityControllerCore extends FrontController
|
||||
|
||||
if (sizeof($_POST))
|
||||
{
|
||||
$exclusion = array('secure_key',
|
||||
'old_passwd',
|
||||
'passwd',
|
||||
'active',
|
||||
'date_add',
|
||||
'date_upd',
|
||||
'last_passwd_gen',
|
||||
'newsletter_date_add',
|
||||
'id_default_group',
|
||||
'ip_registration_newsletter',
|
||||
'note',
|
||||
'is_guest');
|
||||
$exclusion = array(
|
||||
'secure_key',
|
||||
'old_passwd',
|
||||
'passwd',
|
||||
'active',
|
||||
'date_add',
|
||||
'date_upd',
|
||||
'last_passwd_gen',
|
||||
'newsletter_date_add',
|
||||
'id_default_group',
|
||||
'ip_registration_newsletter',
|
||||
'note',
|
||||
'is_guest'
|
||||
);
|
||||
$fields = $customer->getFields();
|
||||
foreach ($fields AS $key => $value)
|
||||
if (!in_array($key, $exclusion))
|
||||
|
@ -1,11 +1,14 @@
|
||||
<?php
|
||||
class IdentityController extends IdentityControllerCore {
|
||||
public function preProcess() {
|
||||
class IdentityController extends IdentityControllerCore
|
||||
{
|
||||
public function preProcess()
|
||||
{
|
||||
self::$smarty->assign(array('HOOK_PROFILE_EDIT' => Module::hookExec('profileEdit')));
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
public function setMedia() {
|
||||
public function setMedia()
|
||||
{
|
||||
parent::setMedia();
|
||||
|
||||
global $css_files;
|
||||
|
Loading…
Reference in New Issue
Block a user