// Small changes on validateController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11967 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -44,27 +44,6 @@ class IdentityControllerCore extends FrontController
|
||||
*/
|
||||
public function postProcess()
|
||||
{
|
||||
if (count($_POST))
|
||||
{
|
||||
$exclusion = array('secure_key',
|
||||
'old_passwd',
|
||||
'passwd',
|
||||
'active',
|
||||
'date_add',
|
||||
'date_upd',
|
||||
'last_passwd_gen',
|
||||
'newsletter_date_add',
|
||||
'id_default_group',
|
||||
'id_shop',
|
||||
'id_group_shop',
|
||||
'ip_registration_newsletter',
|
||||
'note',
|
||||
'is_guest');
|
||||
$fields = $this->customer->getFields();
|
||||
foreach ($fields as $key => $value)
|
||||
if (!in_array($key, $exclusion))
|
||||
$this->customer->{$key} = key_exists($key, $_POST) ? trim($_POST[$key]) : 0;
|
||||
}
|
||||
|
||||
if (isset($_POST['years']) && isset($_POST['months']) && isset($_POST['days']))
|
||||
$this->customer->birthday = (int)($_POST['years']).'-'.(int)($_POST['months']).'-'.(int)($_POST['days']);
|
||||
|
||||
Reference in New Issue
Block a user