1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| function ConnectUser()
{
var identifiant = $('input#identifiant').val().trim();
var password = cryptesha256($('input#password').val(), 1);
var icon_identif = $('img#identif_bullet');
var icon_password = $('img#password_bullet');
var error = $('div#js_er_login_box');
if(verifPassword() & verifIdentif())
{
$.post(
"./Users/Action_connection.php",
{ Ajax: "True", identifiant: identifiant, crypt_password: password },
function display_result(msg)
{
alert(typeof(msg) + " *" + msg + "*");
if(msg == "1")
{alert("if");}
else
{alert("else");}
}
);
}
} |
Partager