如何禁用从我的网站记住密码? [英] how to disable remember password from my site?

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

问题描述


可能存在重复:

禁用浏览器保存密码功能


在我的应用程序,我有一个登录页面。目前在Firefox或IE中,在提供凭证并登录后,它会要求记住密码。有什么办法可以禁用这个功能吗?

解决方案

只需添加属性 autocomplete =off code>到密码输入字段。

但这确实是大多数用户在浏览器中所喜欢的内容。你为什么要禁用它?我会让用户选择是否让浏览器记住它,而不是强迫它们。


Possible Duplicate:
Disable browser 'Save Password' functionality

In my application, I have a login page. Currently in firefox or IE, after giving the credentials and logging in it is asking to remember the password. Is there any way to disable this?

解决方案

Just add the attribute autocomplete="off" to the password input field.

But this is really something most users like in their browser. Why do you want to disable it? I would let the users choose if they want the browser to remember it or not, rather than forcing them.

这篇关于如何禁用从我的网站记住密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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