如何阻止Google Chrome在ASP.NET MVC 4中保存密码? [英] How to prevent Google Chrome from saving passwords in ASP.NET MVC 4?

查看:84
本文介绍了如何阻止Google Chrome在ASP.NET MVC 4中保存密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法阻止Google Chrome和其他浏览器保存特定网站的密码?服务器是ASP.NET MVC .NET4。

Is there a way to prevent Google Chrome and other browsers from saving a password for a specific site? The server is ASP.NET MVC .NET4.

推荐答案

首先 - Chrome向用户提供保存密码,他现在或永远都可以拒绝。恕我直言,这是好的,因为密码属于用户。

但是如果你认为你有权删除这个选项,你可以使用自动填充 [ ^ ]属性。它是大多数浏览器支持的旧属性(我看到了新IE的问题),它现在是HTML5的一部分......
First of all - Chrome offers to the user to save passwords, and he can refuse for now or forever. IMHO it is good as the password belongs to the user.
However if you think that you have the rights to remove this option you can use autocomplete[^] attribute. It's an old attribute supported by most browsers (I saw problems with new IE) and it's now part of HTML5...


这不是软件工程的问题,只是一个问题浏览器用户。它与ASP.NET和服务器端完全无关。 Web应用程序/站点无法控制此功能。这是每个特定浏览器的功能,不受任何W3标准的控制。有关详细信息,请参阅您正在使用的浏览器的文档。



顺便说一句,如果某些浏览器在未经用户同意的情况下尝试保存任何密码,则此类浏览器不应使用。功能使用由用户自行决定。



-SA
This is not a problem of software engineering, just a problem of a browser user. It is totally unrelated to ASP.NET and server side. A Web application/site has no control over this feature. This is a feature of each particular browser, not controlled by any W3 standards. For further information, see the documentation of the browsers you are using.

By the way, if some browser tries to save any passwords without user's consent, such browser should not be used. The feature use is at the sole user's discretion though.

—SA


这篇关于如何阻止Google Chrome在ASP.NET MVC 4中保存密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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