Input type=password, don't let browser remember the password

前端 未结 14 1491
孤城傲影
孤城傲影 2020-11-28 05:04

I remember seeing a way to have an such that the browser will not prompt the user to save the password. But I

14条回答
  •  一向
    一向 (楼主)
    2020-11-28 05:23

    In the case of most major browsers, having an input outside of and not connected to any forms whatsoever tricks the browser into thinking there was no submission. In this case, you would have to use pure JS validation for your login and encryption of your passwords would be necessary as well.

    Before:

    After:

    
    

提交回复
热议问题