如何获得的Chrome要记住登录方式? [英] How to get Chrome to remember login on forms?
本文介绍了如何获得的Chrome要记住登录方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在很多网站,当你通过浏览器登录,它会提供记住您的登录信息。
On many websites when you login via Chrome it will offer to remember your login details.
我有一个登录表单,并不会发生这种情况。
I have a login form and this does not happen.
下面的形式:
<form action="/login" method="post">
<label for="username">Email Address:</label>
<input id="username" name="username" autofocus="autofocus" required="required" type="email" size="25" autocomplete="off"/>
<label for="password">Password:</label>
<input id="password" name="password" required="required" type="password" size="25" autocomplete="off"/>
<input type="submit" value="Login">
</form>
我假设必须有一些变量或头需要设置这样做。
I'm assuming there must be some variable or header that needs setting to do this.
有谁知道它怎么做的?
推荐答案
我删除从表单自动完成参数和现在的Chrome可以在这里存储的用户名和密码。
I removed the autocomplete parameters from the form and now Chrome can store username and password here.
这篇关于如何获得的Chrome要记住登录方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文