Prevent autofill the saved password in angular material design

做~自己de王妃 提交于 2019-12-25 06:28:08

问题


How to prevent the password field from auto-fill with saved password in angular material design

I have used autocomplete="off" it does not worked for me.

   <md-input-container class="md-block margin-top-10" flex-gt-sm>

      <input type="password" name="password" ng-model="auth.user.password"  
         name="password" ng-required="true" autocomplete="off" >  
      </md-input-container>

回答1:


As far as I know this is an issue for material, as documented here.

As mentioned in the comments there is a workaround for this just add autocomplete="off" in the form definition.



来源:https://stackoverflow.com/questions/38589342/prevent-autofill-the-saved-password-in-angular-material-design

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!