Form in HTML+PHP+Jquery to edit password appears Chrome default window

Asked

Viewed 118 times

-1

I made a form for password editing and the expected action is a Ubmit on onclick, but on the contrary is displayed a screen for managing Chrome, I did not enable this option and it persists on all sites that allow me to change my personal password.

The code is simple:

<form role="form" id="formEditPassword" class="formEditPassword" onSubmit="return false;">
    <div class="input-group">
        <input type="password" id="novopass" class="novopass form-control" name="novopass" required placeholder="Nova senha (mínimo 5 digitos)">
    </div>
    <div class="input-group">
        <input type="password" id="cfrmpass" class="cfrmpass form-control" name="cfrmpass" required placeholder="Confirme a senha (mínimo 5 digitos)">
    </div>
    <div class="input-group">
        <input type="password" id="atualpass" class="atualpass form-control" name="atualpass" required placeholder="Sua senha atual">
    </div>
    <div class="input-group">
        <a class="form-link" href="form-reset">Esqueceu sua senha?</a>
    </div>
    <div class="returnData"></div>
    <button type="submit" id="btnSendForm" class="btn btn-default vcenter">Salvar alterações</button>
</form>
<script>
$("#btnSendForm").on('click', function(){
    $.ajax({
        type: 'POST',
        url: "form-password",
        data: $("#formEditPassword").serialize(),
        success: function(data) {
            $('.returnData').html(data);
        }
    });
});
</script>

But when you click submit, as in other cases with the same source, now the window appears below, the field validates but the window appears obstructing the user experience.

inserir a descrição da imagem aqui

  • You could provide sufficient details such as code and how you would expect from your application.

1 answer

1


Good morning.

Seems normal to me. See, if there are several users of the same site with their logins saved, it will open this window, asking which user the password refers to.

What you can do is give an Esc (usually cancels/closes window), or you can go to the browser settings and delete all accounts related to this site. When the browser asks again, choose an option similar to "Never ask again", or something like.

  • Holy ignorance of mine, makes sense, but I think of interface users who do not know too, confused, I will clean the stored data of passwords to continue testing, thank you.

  • Good morning, Elisha. Your "Holy ignorance" reminded me of Batman’s Robin in the 50s, or Ninja Turtle Donatelo (laughs), but you don’t have to exaggerate. Good work and a great day.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.