View Single Post
  #1  
Old 01-27-2011, 06:01 AM
 
mgatten mgatten is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 158
 

Default Hidden login fields autopopulating on register page, causing validation errors

I've just upgraded to 4.4.2 from an ancient, ancient version.

I like how the username/password fields are hidden until a person checks the "Create Account" checkbox. But it causes a problem: If the user's browser sees the field names on there and has a username and/or password saved for some other site that uses the same field names it will try to be "helpful" by filling out one or both of those fields even though they aren't visible to the user.

Then the user submits their contact info without creating an account and gets an error message saying that their username or password is invalid.

Not seeing any such fields, they leave.

I thought about explicitly setting these to null using a javascript onLoad event, but looking at the .tpl file it looks like a lot of trouble has been gone to in order to populate them in certain circumstances.

I had a similar problem on my old system, but the fields were always visible so it wasn't a big deal. But the fact that it was happening at all on such an old version tells me that it's almost certainly a problem that a lot of you have dealt with.

Anybody find a solution?

Marshall
__________________
--------
http://www.miracleblanket.com Version 4.4.2
http://www.spot4tots.com Version 4.4.2
http://www.certifiedmiracles.com Version 4.4.2
Reply With Quote