I have a secure login form for my website. In the login process, I use a file called form.js
. When I enter the username and the password, it loads but doesn't direct me to the page, however everything works fine on Chrome. I get this notification (click on the link for the image):
And this is the forms.js code:
function formhash(form, password) {
// Create a new element input, this will be our hashed password field.
var p = document.createElement("input");
// Add the new element to our form.
form.appendChild(p);
p.name = "p";
p.type = "hidden";
p.value = hex_sha512(password.value);
// Make sure the plaintext password doesn't get sent.
password.value = "";
// Finally submit the form.
form.submit();
}
Any idea about this problem?