Chrome,Safari和Opera不记得简单形式的密码 [英] Chrome, Safari and Opera do not remember password on simple form

查看:153
本文介绍了Chrome,Safari和Opera不记得简单形式的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我首先遇到了AJAX登录问题,并且在查找了几个小时的解决方案后,我想我会尝试一些如此简单的操作:

 < HTML> 
< head>< / head>
< body>
< form id =login_formaction =login.htmlmethod =post>
< input type =textid =login_usernamevalue =/>
< input type =passwordid =login_passwordvalue =/>
< input type =submitid =login_submitvalue =Login/>
< / form>
< / body>
< / html>

转到login.html,但不提供保存密码!我认为这可能是一个本地主机问题,所以我部署在服务器上,Chrome仍然不提供存储密码。 FF和IE工作正常,但Chrome,Safari和Opera不支持。
$ b

保存我在网上输入的密码被选中。



永不保存为空。

解决方案 DIV>

哇。这个应该在某处注明。 我怀疑它可能是,但我找不到它......



解决方案是用户名和密码字段中的名称标签。如果这些丢失,那么Chrome将不会提供保存密码。一旦我添加了Chrome和Opera开始提供的名称标签以保存密码。



Safari仍然没有这样做。

 < html> 
< head>< / head>
< body>
< form id =login_formaction =login.htmlmethod =post>
< input type =textid =login_usernamename =login_usernamevalue =/>
< input type =passwordid =login_passwordname =password_usernamevalue =/>
< input type =submitid =login_submitvalue =Login/>
< / form>
< / body>
< / html>


I first had the problem with an AJAX login, and after looking for a solution for hours I thought I would try something as simple as this:

<html>
    <head></head>
    <body>
        <form id="login_form" action="login.html" method="post">
            <input type="text" id="login_username" value="" />
            <input type="password" id="login_password" value="" />
            <input type="submit" id="login_submit" value="Login" />
        </form>
    </body>
</html>

It goes to login.html but does not offer to save the password! I thought it might be a localhost issue so i deployed on the server and still, Chrome does not offer to store the password. FF and IE work as expected but Chrome, Safari and Opera do not.

"Offer to save passwords I enter on the web" is checked.

"Never saved" is empty.

解决方案

Wow. This should be noted somewhere. I suspect it probably is but I just could not find it...

The solution is the name tag in both username and password fields. If these are missing then Chrome will not offer to save the password. Once I added the name tags Chrome and Opera started to offer to save the password.

Safari is still not doing it.

<html>
  <head></head>
  <body>
    <form id="login_form" action="login.html" method="post">
      <input type="text" id="login_username" name="login_username" value="" />
      <input type="password" id="login_password" name="password_username" value="" />
      <input type="submit" id="login_submit" value="Login" />
    </form>
  </body>
</html>

这篇关于Chrome,Safari和Opera不记得简单形式的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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