Disable browser 'Save Password' functionality

前端 未结 30 3391
失恋的感觉
失恋的感觉 2020-11-21 23:29

One of the joys of working for a government healthcare agency is having to deal with all of the paranoia around dealing with PHI (Protected Health Information). Don\'t get m

30条回答
  •  眼角桃花
    2020-11-21 23:54

    I tested lots of solutions. Dynamic password field name, multiple password fields (invisible for fake ones), changing input type from "text" to "password", autocomplete="off", autocomplete="new-password",... but nothing solved it with recent browser.

    To get rid of password remember, I finally treated the password as input field, and "blur" the text typed.

    It is less "safe" than a native password field since selecting the typed text would show it as clear text, but password is not remembered. It also depends on having Javascript activated.

    You will have estimate the risk of using below proposal vs password remember option from navigator.

    While password remember can be managed (disbaled per site) by the user, it's fine for a personal computer, not for a "public" or shared computer.

    I my case it's for a ERP running on shared computers, so I'll give it a try to my solution below.

    
    

提交回复
热议问题