Skip to content

Commit

Permalink
MDL-8071 call_time_pass_reference trouble in pam auth
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 4, 2007
1 parent ff768bc commit b91c36b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auth/pam/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ function user_login ($username, $password) {

// just for testing and debugging
// error_reporting(E_ALL);
if (pam_auth($username, $password, &$errormessage)) {

// call_time_pass_reference of errormessage is deprecated - throws warnings in multiauth
//if (pam_auth($username, $password, &$errormessage)) {
if (pam_auth($username, $password)) {
return true;
}
else {
Expand Down

0 comments on commit b91c36b

Please sign in to comment.