为什么浏览器不要求记住密码? [英] Why isnt the browser asking to remember the password?

查看:145
本文介绍了为什么浏览器不要求记住密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你需要在登录表单上做什么,以便浏览器提示记住登录信息?我有一个名为username的输入和一个名为password的输入。

在我的浏览器中,我设置了它是否应该记住密码,大多数网站,但在我测试它的网站没有,所以我想知道可以改变什么使它记住。

我也在密码字段中使用了type = password,并且它可以很好地记录日志和所有内容,但firefox或safari都不想记住它。这不是一个大问题,但它很好找出



谢谢

这里是表单:

< form id =loginmethod =postaction =/ login.php>

< div class =cell>



< div class =left>用户名:< / div>

< div class =right>

< input type =textid =usernamename =username>

< / div>



< div class =left>密码:< / div>

< div class =right>

< input type =passwordid =passwordname =password>
< / div>



< div class =left>< / div>

< div class =
< input type =submitvalue =Log In/>

< / div>



< div class =clear>< / div>

< / div>

< / form>

解决方案

确保您的输入是 type =password。如果它的类型是文本,它将不起作用。


What do you need to do on a login form so that the browser prompts to remember the login information? I have a input named "username" and one named "password".

on my browser i have it set to ask if it should remember the password, and it does on most sites, but on the site that i am testing it doesnt, so i am wondering what can be changed to make it remember.

i am also using the type=password for the password field, and it logs in fine and everything, but neither firefox, or safari want to remember it. it is not a huge problem, but it would be nice to figure out

Thanks

here is the form:

<form id="login" method="post" action="/login.php">
<div class="cell">

<div class="left">Username: </div>
<div class="right">
<input type="text" id="username" name="username">
</div>

<div class="left">Password: </div>
<div class="right">
<input type="password" id="password" name="password">
</div>

<div class="left"></div>
<div class="right">
<input type="submit" value="Log In" />
</div>

<div class="clear"></div>
</div>
</form>

解决方案

Make sure your input is type="password". If its type is text, it won't work.

这篇关于为什么浏览器不要求记住密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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