Disable browser 'Save Password' functionality

前端 未结 30 3734
失恋的感觉
失恋的感觉 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:42

    I have a work around, which may help.

    You could make a custom font hack. So, make a custom font, with all the characters as a dot / circle / star for example. Use this as a custom font for your website. Check how to do this in inkscape: how to make your own font

    Then on your log in form use:

    Then add your css:

    @font-face {
        font-family: 'myCustomfont';
        src: url('myCustomfont.eot');
        src: url('myCustomfont?#iefix') format('embedded-opentype'),
             url('myCustomfont.woff') format('woff'),
             url('myCustomfont.ttf') format('truetype'),
             url('myCustomfont.svg#myCustomfont') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    .password {
      font-family:'myCustomfont';
    }
    

    Pretty cross browser compatible. I have tried IE6+, FF, Safari and Chrome. Just make sure that the oet font that you convert does not get corrupted. Hope it helps?

提交回复
热议问题