Disabling Safari autofill on usernames and passwords

后端 未结 17 1777
萌比男神i
萌比男神i 2020-11-29 03:52

You might already know, that Safari has a nasty autofill bug where it fills email, username and password fields no matter if you set autocomplete=\"off\" or not

17条回答
  •  孤街浪徒
    2020-11-29 04:28

    Better than use JS to clear content - simply fake password field:

    
    
    
    

    A password type doubled put the browser in incertitude so it autocompletes only user name

    fake_pass input should not have name attribute to keep $_POST clean!

提交回复
热议问题