changed authentication system, and added LDAP authentication support

This commit is contained in:
seek3r 2000-08-28 08:10:30 +00:00
parent af7f61ecdc
commit 4f96cb127f

View File

@ -75,12 +75,7 @@
Header("Location: " . $phpgw->link("", "cd=5")); Header("Location: " . $phpgw->link("", "cd=5"));
} }
$phpgw->db->query("SELECT * FROM accounts WHERE loginid = '$login' AND " if (!($phpgw->auth->authenticate($login, $passwd))) {
. "passwd='" . md5($passwd) . "' AND status ='A'");
$phpgw->db->next_record();
if (! $phpgw->db->f("loginid")) {
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=5"); Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=5");
} else { } else {
// Make sure the server allows us to use cookies // Make sure the server allows us to use cookies
@ -101,7 +96,6 @@
// . "/", $usecookies)); // . "/", $usecookies));
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]
. "/", "cd=yes")); . "/", "cd=yes"));
exit; exit;
} }
} else { } else {