Yii Framework Forum: Prevent password prefill in FF - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Prevent password prefill in FF Rate Topic: -----

#1 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 29 January 2009 - 11:02 AM

Not really Yii related, but just in case someone has the same problem: My application has a page to create/update users, and to enter a password. Sadly, firefox now allways prefills the username/password fields with my stored login data. To prevent that, you can use this:

<?php echo CHtml::form('','post',array('autocomplete'=>'off')); ?>

0

#2 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 29 January 2009 - 06:01 PM

I had the same problem and used the same fix, however for me it was chrome that was to vigorous and decided that my email field on the update form was the same as the username field on the login form.  Never had that problem with CakePHP, not sure why.
0

#3 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 30 January 2009 - 02:48 AM

Would be interesting, after which rules they decide when to prefill. I first thought it was the name "login", that i used in my model. But even after changing that to "benutzername" (german for 'username'), still the same behaviour. It seems to have to do with the password fields.
0

#4 User is offline   yoshi 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 28-February 09
  • Location:Germany

Posted 15 April 2009 - 05:59 PM

Hi,
the following mozilla page shows how to disable the autocompletion and gives also a few facts about how autocomplete form-fields are recognized: https://developer.mo..._Autocompletion
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users