mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
changed authentication system, and added LDAP authentication support
This commit is contained in:
parent
af7f61ecdc
commit
4f96cb127f
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user