Nowoczesne przeglądarki zapisują hasła. Jakie kryteria wpływają na tę decyzję?W jaki sposób przeglądarka decyduje, które pola formularza są nazwą użytkownika/hasłem?
Tło:
Mam stronę rejestracyjną w następującej postaci:
<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 wydaje się myśleć, że pola securityAnswer
i password
są user/pw pola, z niewygodnych konsekwencji (odpowiedź bezpieczeństwo przechowywane jako nazwa użytkownika jest złe).
Haha. Oczywiste, gdy cofniesz się nieco. Ta. – spender
co jeśli nie chcę? moje pytanie jest http://stackoverflow.com/questions/8379091/how-can-i-avoid-browser-prepopulating-fields-in-my-registration-form tutaj –