Try using error_log instead.
This commit is contained in:
parent
6cc0853dd4
commit
c42a697d01
2 changed files with 7 additions and 7 deletions
|
@ -28,7 +28,7 @@ class Auth_FAS extends AuthPlugin {
|
|||
curl_close ($ch);
|
||||
|
||||
if (!isset($response["success"])) {
|
||||
fwrite(STDERR, "FAS auth failed for $username: incorrect username or password\n");
|
||||
error_log("FAS auth failed for $username: incorrect username or password", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -36,11 +36,11 @@ class Auth_FAS extends AuthPlugin {
|
|||
|
||||
for ($i = 0, $cnt = count($groups); $i < $cnt; $i++) {
|
||||
if ($groups[$i]["name"] == "cla_done") {
|
||||
fwrite(STDERR, "FAS auth succeeded for $username\n");
|
||||
error_log("FAS auth succeeded for $username", 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
fwrite(STDERR, "FAS auth failed for $username: insufficient group membership\n");
|
||||
error_log("FAS auth failed for $username: insufficient group membership", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue