E
E
Egor Trubnikov-Panov2014-05-21 12:49:20
Mozilla
Egor Trubnikov-Panov, 2014-05-21 12:49:20

Why doesn't Mozilla FireFox save passwords?

Here is such a form. The data is sent by ajax.
All browsers offer to remember login/passwords, but FF does not offer and does not remember.
In the settings, the ignore list is blank. "Remember passwords" checkbox is checked

<form id="login" class="Login-form__form" action="#" method="post" autocomplete="on">
        <div class="row">
            <div class="login-form__label third">Логин:</div>
            <div class="twothird">
                <input type="text" name="reg_login" maxlength="30" id="reg_login" class="login-form__input"/>
            </div>
        </div>
        <div class="row">
            <div class="login-form__label third">Пароль:</div>
            <div class="twothird">
                <input type="password" name="reg_pass" id="reg_pass" class="login-form__input"/>
            </div>
        </div>
        <div class="row">
            <div class="twothird push-third">
                <label>
                    <input type="checkbox" id="rememberMy" class="login-form__checkbox"/> Запомнить меня
                </label>
            </div>
        </div>
        <div class="row">
            <div class="twothird push-third">
                <button class="dart-btn blue dart-btn-big" type="button" id="loginBtn" onclick="sendAuth()">Войти</button>
            </div>
        </div>
        <div class="row">
            <div class="twothird push-third">
                <a href="?action=restore" class="login-form__link">Вcпомнить пароль</a>
                <a href="?action=reg" class="login-form__link">Зарегистрироваться</a>
            </div>
        </div>
    </form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2014-05-21
@nazarpc

Because you are sending with Ajax. Do it like this:

$('#login').submit(function () {
    sendAuth();
    return false;
});

That's how it will be remembered.
Well, remove action=# altogether, why is there this lattice?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question