mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Changing the auth value only if auth not is setted.
This commit is contained in:
parent
777afb6d3e
commit
1dfd3ce0b1
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ class HttpSocket extends CakeSocket {
|
||||||
*/
|
*/
|
||||||
protected function _setAuth() {
|
protected function _setAuth() {
|
||||||
if (empty($this->request['auth']['method'])) {
|
if (empty($this->request['auth']['method'])) {
|
||||||
if (isset($this->request['uri']['user'], $this->request['uri']['pass'])) {
|
if (isset($this->request['uri']['user'], $this->request['uri']['pass']) && !isset($this->request['auth']['user'])) {
|
||||||
$this->request['auth'] = array(
|
$this->request['auth'] = array(
|
||||||
'method' => 'Basic',
|
'method' => 'Basic',
|
||||||
'user' => $this->request['uri']['user'],
|
'user' => $this->request['uri']['user'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue