Smarty Template korrekt; LDAP Connects mit DB Connects

This commit is contained in:
aschwarz
2023-11-06 11:36:15 +01:00
parent fd10ee8d96
commit b4c5946719
10 changed files with 239 additions and 379 deletions

View File

@ -1,5 +1,5 @@
function login(){
var mail = document.getElementById("mail").value;
var user = document.getElementById("user").value;
var password = document.getElementById("password").value;
// var angemeldet_bleiben = document.getElementById("angemeldet_bleiben");
@ -14,14 +14,14 @@ function login(){
url: '../controller/admin_login.php',
data: {
'function': 'login',
'mail': mail,
'user': user,
'password': password
},
success: function(result) { //we got the response
if(result!=''){
var a = result.split('|***|');
if(a[1]=="success"){
document.getElementById("mail").value ="";
document.getElementById("user").value ="";
document.getElementById("password").value ="";
$('#msg').show().delay(1000).fadeOut(500);
$('#msg').html(a[0]);