Reputation: 101
I'm using Opencart for my ecommerce and point-of-sale website. Because we do point-of-sale (producing a quote/order for a customer on their behalf), I have to create customer profiles all the time. Username, password, etc.
I used <form autocomplete="off">
on our customer account creation page, but it appears with the newest version of Chrome, autocomplete="off" is ignored, and so the customer's password is always defaulted to my admin password for the site. This is very annoying. Safari has the same issue.
Any way around this other than complete hacks?
Upvotes: 1
Views: 1132
Reputation: 420
I found solution of this problem. It is not elegant but working. Usually browser's autocomplete tries to set saved password into a type="password" field and an email (or login) into the field before it. So you should change type of your password input to 'text'.
<input type="text" name"password" id="password_input" />
And then change it back to 'password' with Javascript
setTimeout(function (){
$('#password_input').attr('type', 'password');
}, 500);
Without timeout it won't work in Safari.
Upvotes: 0
Reputation: 1670
It should be possible to turn off autocomplete with a "--disable-ignore-autocomplete-off" flag (chrome 34).
Upvotes: 2