Fix broken PAM authentication

This commit is contained in:
petere78 2005-05-24 13:01:43 +00:00
parent b5f7b12209
commit 0c093c132a

View File

@ -24,7 +24,7 @@
{
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;
}