Update Auth.php
This commit is contained in:
parent
03cb76c608
commit
1b60ba1e13
12
src/Auth.php
12
src/Auth.php
|
@ -84,18 +84,18 @@ class Auth
|
||||||
break;
|
break;
|
||||||
case 'ds':
|
case 'ds':
|
||||||
case 'ds-api':
|
case 'ds-api':
|
||||||
$this->id = $this->config['apps']['erp']['id'];
|
$this->id = $this->config['apps']['ds']['id'];
|
||||||
$this->secret = $this->config['apps']['erp']['secret'];
|
$this->secret = $this->config['apps']['ds']['secret'];
|
||||||
break;
|
break;
|
||||||
case 'crm':
|
case 'crm':
|
||||||
case 'crm-api':
|
case 'crm-api':
|
||||||
$this->id = $this->config['apps']['erp']['id'];
|
$this->id = $this->config['apps']['crm']['id'];
|
||||||
$this->secret = $this->config['apps']['erp']['secret'];
|
$this->secret = $this->config['apps']['crm']['secret'];
|
||||||
break;
|
break;
|
||||||
case 'op':
|
case 'op':
|
||||||
case 'op-api':
|
case 'op-api':
|
||||||
$this->id = $this->config['apps']['erp']['id'];
|
$this->id = $this->config['apps']['op']['id'];
|
||||||
$this->secret = $this->config['apps']['erp']['secret'];
|
$this->secret = $this->config['apps']['op']['secret'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user