Fix broken PAM authentication

This commit is contained in:
petere78 2005-05-24 13:00:13 +00:00
parent f2a058fccf
commit c9e47a1f28

View File

@ -24,7 +24,7 @@
{ {
function authenticate($username, $passwd) function authenticate($username, $passwd)
{ {
if (pam_auth($username, get_magic_quotes_gpc() ? stripslashes($passwd) : $passwd, $error)) if (pam_auth($username, get_magic_quotes_gpc() ? stripslashes($passwd) : $passwd, &$error))
{ {
return True; return True;
} }