這很奇怪:如果我登錄到我的應用程序,請問firefox保存用戶名/密碼。然後註銷並返回到登錄屏幕,firefox填充用戶名輸入字段中的密碼,從而使其可見!firefox將密碼填入用戶名字段
任何想法可能會導致問題?這裏是我的表格的html,雖然我已經檢查了10億次。
<form action="<?php echo WWWROOT ?>login/" autocomplete="on" method="post" name="extranetLoginForm" id="extranetLoginForm" >
<ul id="formlog">
<li id="liloginfield">
<label for="loginfield" id="loginfieldlab"><span class="required">
<img alt="user-icon" src="<?php echo WWWROOT ?>_img/icons/user.png" />
Mon nom d'utilisateur : <small style="color:#AAA">(prenom.nom)</small></span>
</label>
<input id="loginfield" name="loginfield" class="text required ui-corner-all" type="text" tabindex="1" accesskey="l" />
<label for="loginfield" class="error" id="error1">
<img alt="erreur-login" src="<?php echo WWWROOT ?>_img/icons/exclamation.png" />Ce champ est obligatoire, rédigez comme ceci: prenom.nom</label>
</li>
<li id="lipass">
<label for="password">
<span class="required"><img alt="lost-pass" src="<?php echo WWWROOT ?>_img/icons/key.png" />mot de passe
<small class="help_form">(<a id="forgotPasswordLink" href="#">oublié</a> ?)</small></span>
</label>
<input name="password" type="password" class="text required ui-corner-all" id="password" minlength="4" maxlength="20" tabindex="2" accesskey="p" />
<small class="checker" ></small>
<input type="hidden" name="errorpass" id="errorpass" value="0"/>
<label for="password" class="error" id="error2"><img alt="exclamation" src="<?php echo WWWROOT ?>_img/icons/exclamation.png" />Ce champ est obligatoire.</label>
</li>
<li>
<input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /><label for="rememberme"> Se souvenir de moi</label></p>
</li>
<li class="centeredtext">
<input type="hidden" name="goto" id="goto" value="<?php echo WWWROOT.$_SESSION['AFTER_LOGIN_GOTO'] ?>"/>
<input type="hidden" name="login_type" id="loginTypeNormal" value="normal"/>
<input type="submit" class="ui-state-default button ui-corner-all short_input" value="GO!" id="submitlogin" tabindex="1" accesskey="L" />
</li>
<li id="lipassforget">
<label class="centered info"><a class="dark_link openidLink" href="#" id="openidLink">avec OpenID</a></label>
</li>
</ul>
</form>
我剛剛嘗試使用其他名稱作爲我的輸入,複製Wordpress登錄頁面(使用相同的測試工具,事情按預期發生)並擦除所有保存的密碼。現在,情況會好一些:密碼字段是預填充的,但用戶名字段保持空白......我會看看是否使用其他文檔類型將扮演角色。任何其他想法? – pixeline 2010-01-29 19:41:16
您可以嘗試將輸入框的名稱更改爲'用戶名'。當然,這似乎是任何瀏覽器密碼管理員都會尋找的最標準的領域。 – 2010-01-29 19:47:37