Jump to content

Annoying “Hack attempt” message in registration form


Recommended Posts

Hi!
I have the annoying "Hack attempt" message after i removed city, postcode, country, and made phones required fields.
What i did is, edit the /classess/Address.php, /themes/prestashop/address.tpl, /themes/prestashop/authentication.tpl.

In Address.php i changed:

protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city');


to:

protected $fieldsRequired = array('alias', 'lastname', 'firstname', 'address1', 'phone', 'phone_mobile');


In authentication.tpl and address.tpl:



{l s='Home phone'}
<input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />


to:



{l s='Home phone'}
<input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />
*


The same for the mobile phone and removed code for city, postcode and country in authentication.tpl and address.tpl.

Also i deleted the check box "receive special offers from our partners" from authentication.tpl and identity.tpl

<input type=“checkbox“name=“optin” id=“optin” value=“1” {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked=“checked”{/if} /> {l s=‘Receive special offers from our partners’}



Can anyone help me?

Thank you in advance.

Link to comment
Share on other sites

  • 1 month later...

I have same problem, when I made mobile phone mandatory, no users cannnot access identity.php because it shows
"hack attempt (Customer -> phone_mobile is empty)"

I changed address.php/Customer.php with adding 'phone_mobile' as this was a solution shown in this forum, but after that I cannot find a way how to do that field not empty..
Help somebody, because I see few topics has already been in few months without any solution..

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...
  • 2 weeks later...
×
×
  • Create New...