Remove Debug Outputs
This commit is contained in:
parent
e0dc2622c2
commit
f632bf2de5
1 changed files with 0 additions and 2 deletions
|
@ -25,7 +25,6 @@ if (empty($_SERVER['PHP_AUTH_DIGEST'])) {
|
||||||
// analyze the PHP_AUTH_DIGEST variable
|
// analyze the PHP_AUTH_DIGEST variable
|
||||||
if (!($data = DigestAuth::httpDigestParse($_SERVER['PHP_AUTH_DIGEST'])) ||
|
if (!($data = DigestAuth::httpDigestParse($_SERVER['PHP_AUTH_DIGEST'])) ||
|
||||||
!isset($users[$data['username']])) {
|
!isset($users[$data['username']])) {
|
||||||
var_dump($_SERVER["PHP_AUTH_DIGEST"]);
|
|
||||||
die('Wrong Credentials!');
|
die('Wrong Credentials!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +35,5 @@ $A2 = md5($_SERVER['REQUEST_METHOD'].':'.$data['uri']);
|
||||||
$valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2);
|
$valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2);
|
||||||
|
|
||||||
if ($data['response'] != $valid_response) {
|
if ($data['response'] != $valid_response) {
|
||||||
var_dump($_SERVER["PHP_AUTH_PW"]);
|
|
||||||
die('Wrong Credentials!');
|
die('Wrong Credentials!');
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue