We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ba7d7 commit 570d457Copy full SHA for 570d457
application/libraries/REST_Controller.php
@@ -2108,7 +2108,7 @@ protected function _prepare_digest_auth()
2108
}
2109
2110
$md5 = md5(strtoupper($this->request->method).':'.$digest['uri']);
2111
- $valid_response = md5($username.':'.$digest['nonce'].':'.$digest['nc'].':'.$digest['cnonce'].':'.$digest['qop'].':'.$md5);
+ $valid_response = md5($digest['username'].':'.$digest['nonce'].':'.$digest['nc'].':'.$digest['cnonce'].':'.$digest['qop'].':'.$md5);
2112
2113
// Check if the string don't compare (case-insensitive)
2114
if (strcasecmp($digest['response'], $valid_response) !== 0)
0 commit comments