W
W
WEBIVAN2015-03-20 15:42:32
HTML
WEBIVAN, 2015-03-20 15:42:32

The browser remembers the password but not the login. How to fix?

I have the following form

<button class="authorization" tabindex="12">Войти</button>
<div style="float: right; margin-right: 0px; width: 588px;">                       
  <form action="http://a.example.com/" method="POST" class="loginForm">
    <input type="password" id="inpt1" name="passw" value="password" tabindex="11">
    <input type="text" id="inpt2" name="login" value="E-mail" tabindex="10">
    <input type="hidden" id="inpt3" name="action" value="login">
    <input type="submit" value="enter" style="visibility:hidden">
  </form>
</div>

The button has a handler that submits the form.
$("button.authorization").live('click',function(){
           $("form.loginForm").submit();
    })

However, when sending by pressing enter, chrome and FF still offer to remember only the password, but not the login. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2015-03-20
@WEBIVAN

Try putting the login field above the password field. Apparently, this is where browsers stumble.

E
Egor Fedosenko, 2015-03-20
@webset

It seems that browsers always ask "Save your password?", they never write about the login.
Or do you have a browser autofilling the password in some way when saving, but not the input with the login?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question