Skip to content

Commit 9469bf8

Browse files
delegated _check_login (child to ) to do digest hashing
1 parent f5eba0b commit 9469bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ protected function _prepare_digest_auth()
14121412
$digest = (empty($matches[1]) || empty($matches[2])) ? array() : array_combine($matches[1], $matches[2]);
14131413

14141414
// For digest authentication the library function should return already stored md5(username:restrealm:password) for that username @see rest.php::auth_library_function config
1415-
$A1 = $this->_check_login($digest['username']);
1415+
$A1 = $this->_check_login($digest['username'], true);
14161416
if ( ! array_key_exists('username', $digest) or ! $A1 ) {
14171417
$this->_force_login($uniqid);
14181418
}

0 commit comments

Comments
 (0)