Jump to content

Password field not autocompiled in case of error during user registration


brennino

Recommended Posts

Hi,

 

I'm on prestashop 1.6.0.5 and when a user have an error during user registration he must recompile everytime the password field.

 

I solved this issue on template file, changing the code in authentication.tpl from:

<input type="password" class="is_required validate form-control"
 data-validate="isPasswd" name="passwd" id="passwd" />

to

<input type="password" class="is_required validate form-control"
 data-validate="isPasswd" id="passwd" name="passwd"
 value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" />

This code can be useful also for other people and if you use one page checkout remember to edit also order-opc-new-account.tpl .

 

I want to know from prestashop developers why they do not keep password value inside the form.

 

Is there a bug or something wrong in the code posted (for security reasons or other...) or is not a good idea the procedure to present the password in the field itself?

 

Thanks

 

Brennino

 

Link to comment
Share on other sites

×
×
  • Create New...