mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Updated the config of auth in digest method.
This commit is contained in:
parent
296aef2c11
commit
99407282e5
1 changed files with 2 additions and 2 deletions
|
@ -53,10 +53,10 @@ class DigestAuthentication {
|
|||
*/
|
||||
protected static function _getServerInformation(HttpSocket $http, &$authInfo) {
|
||||
$originalRequest = $http->request;
|
||||
$http->setAuthConfig(false);
|
||||
$http->configAuth(false);
|
||||
$http->request($http->request);
|
||||
$http->request = $originalRequest;
|
||||
$http->setAuthConfig('Digest', $authInfo);
|
||||
$http->configAuth('Digest', $authInfo);
|
||||
|
||||
if (empty($http->response['header']['WWW-Authenticate'])) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue