Ajout logout + check date php
This commit is contained in:
@@ -8,6 +8,7 @@ $(function() {
|
||||
$('form').on('submit',function(e) {
|
||||
e.preventDefault();
|
||||
var data = $(this).serialize();
|
||||
var loginName = $("input[name$='login']", $(this)).val()
|
||||
var url = $(this).attr('action')
|
||||
if(url == "./post.php")
|
||||
if (mailPatern.test($(".email input").val()) && passwordPatern.test($(".pw input").val()) && $(".pw2 input").val() == $(".pw input").val() && loginPatern.test($(".login input").val()))
|
||||
@@ -39,7 +40,7 @@ $(function() {
|
||||
} else if (typeof(data.login) != "undefined" && data.login !== null) {
|
||||
if(data.login)
|
||||
{
|
||||
swal("Good job!", "You are logged !\nYou're redirect in 5 seconds", "success");
|
||||
swal("Good job!", "Welkome "+loginName+"\nYou are logged !\nYou're redirect in 5 seconds", "success");
|
||||
var delay = 5000;
|
||||
setTimeout(function(){ window.location = "/bil/"; }, delay);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user