From 4f96cb127ff5cfb426d26586f1e714be5bba1321 Mon Sep 17 00:00:00 2001 From: seek3r Date: Mon, 28 Aug 2000 08:10:30 +0000 Subject: [PATCH] changed authentication system, and added LDAP authentication support --- login.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/login.php b/login.php index 3bccf43bce..e33e6947d0 100755 --- a/login.php +++ b/login.php @@ -75,12 +75,7 @@ Header("Location: " . $phpgw->link("", "cd=5")); } - $phpgw->db->query("SELECT * FROM accounts WHERE loginid = '$login' AND " - . "passwd='" . md5($passwd) . "' AND status ='A'"); - - $phpgw->db->next_record(); - - if (! $phpgw->db->f("loginid")) { + if (!($phpgw->auth->authenticate($login, $passwd))) { Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=5"); } else { // Make sure the server allows us to use cookies @@ -101,7 +96,6 @@ // . "/", $usecookies)); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/", "cd=yes")); - exit; } } else {