禁用"记住我的密码"提示用户访问网站 [英] Disabling "Remember My Password" prompt to users visiting site

查看:183
本文介绍了禁用"记住我的密码"提示用户访问网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有一个ASP.Net MVC的网站,我想知道是否有可能在所有使它所以用户都可以在自己的密码手动输入所以它不会自动被浏览器填补他们?这似乎是一个简单的事情要问,但谷歌上搜索这个我刚上车的客户如何禁用其迅速指令。

So I have an ASP.Net MVC site and I was wondering if it was possible at all to make it so users will have to enter in their passwords manually so its not auto filled for them by the browser? It seems like a simple thing to ask, but googling this I just get instructions on how a client can disable their prompt.

推荐答案

我从来没有使用过它这一点,但有一个自动完成属性时,禁用会告诉浏览器不要存储从密码字段的任何信息:

I've never used it for this, but there is an autocomplete property that when disabled will tell the browser not to store any information from the password field :

如果自动完成被禁用,值
  不存储和建议值
  不是presented。

If AutoComplete is disabled, values are not stored and suggested values are not presented.

<一个href=\"http://msdn.microsoft.com/en-us/library/ms533486(VS.85).aspx\">http://msdn.microsoft.com/en-us/library/ms533486(VS.85).aspx

<INPUT TYPE="password" AUTOCOMPLETE="off">

我用它为信用卡号码和正常等文本字段。但我不知道这会为密码字段正常工作。你可能想尝试在IE以外其他浏览器虽然是肯定的。

I've used it for normal text fields for credit card numbers and such. But I didn't realize this would work for the password fields as well. You might want to try it in other browsers besides IE though to be sure.

更新:貌似这个工作在Firefox和Chrome浏览器

UPDATE: Looks like this works in both Firefox and Chrome.

这篇关于禁用&QUOT;记住我的密码&QUOT;提示用户访问网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆