Skip to content

Commit

Permalink
Update auth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee authored Sep 19, 2016
1 parent 811f936 commit 451e1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
header('HTTP/1.0 401 Unauthorized');
echo 'Text to send if user hits Cancel button';
exit;
} elseif ($_SERVER['PHP_AUTH_USER']!='user' && $_SERVER['PHP_AUTH_PW']!='pass') {
} elseif ($_SERVER['PHP_AUTH_USER']!='user' || $_SERVER['PHP_AUTH_PW']!='pass') {
header('HTTP/1.0 403 Forbidden');
echo 'Forbidden';
exit;
Expand Down

0 comments on commit 451e1ad

Please sign in to comment.