brennino Posted September 15, 2014 Share Posted September 15, 2014 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 More sharing options...
DARKF3D3 Posted September 15, 2014 Share Posted September 15, 2014 There's also a lot of other website that do in that way (personally i don't like it), so maybe PS staff preferred to empty the fields. Link to comment Share on other sites More sharing options...
Recommended Posts