本文介绍了如何在浏览器决定哪些表单域的用户名/密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现代浏览器保存的密码。哪些标准会影响这个决定?
Modern browsers save passwords. Which criteria affect this decision?
背景:
我有以下形式注册页面:
I have a registration page with the following form:
<form action="/BlaBla/Account/Register" method="post">
<div>
<fieldset>
<legend>Account Information</legend>
<p>
<label for="username">
Username:</label>
<input id="username" name="username" type="text" value="" />
</p>
<p>
<label for="email">
Email:</label>
<input id="email" name="email" type="text" value="" />
</p>
<p>
<label for="invitationCode">
Invitation Code:</label>
<input id="invitationCode" name="invitationCode" type="text" value="" />
</p>
<p>
<label for="securityQuestion">
Security question:</label>
<input id="securityQuestion" name="securityQuestion" type="text" value="" />
</p>
<p>
<label for="securityAnswer">
Security answer:</label>
<input id="securityAnswer" name="securityAnswer" type="text" value="" />
</p>
<p>
<label for="password">
Password:</label>
<input id="password" name="password" type="password" />
</p>
<p>
<label for="confirmPassword">
Confirm password:</label>
<input id="confirmPassword" name="confirmPassword" type="password" />
</p>
<p class="buttons">
<input type="submit" value="Register" />
</p>
</fieldset>
</div>
</form>
Mozilla的似乎认为该领域 securityAnswer
和密码
是用户/密码领域,具有麻烦的结果是(存储用户名是坏的)安全性的答案。
Mozilla seems to think that the fields securityAnswer
and password
are the user/pw fields, with awkward consequences (security answer stored as username is bad).
推荐答案
我猜它假定上面的'密码'的字段是用户名。你可以尝试重新排序。
I'd guess it assumes the field above 'password' is the username. You could try re-ordering them.
这篇关于如何在浏览器决定哪些表单域的用户名/密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!