autocomplete = 'off' is not working on firefox

后端 未结 17 1737
無奈伤痛
無奈伤痛 2020-12-17 09:25

I created 2 login pages of same domain.

  1. www.example.com/login.cfm
  2. www.example.com/newLogin.cfm

I put the form name different for 2 forms

17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 09:58

    This is the cleanest solution I have found to keep Firefox from auto completing.

     
     
     
    

    Add this code snip-it above your input of type password.

    As far as I can tell Firefox is looking for an input of type Password, and filling in the password and then adding the username to the input of type text above it. Without a name or an id the inputs don't get added to the post, but this is still a hack.

提交回复
热议问题