Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev

This commit is contained in:
VENKATESHWARAN 2025-12-10 16:58:31 +05:30
commit ae9ecff8d7
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class Database extends Config
$this->defaultGroup = 'tests'; $this->defaultGroup = 'tests';
} }
$this->enableSSL = env('DB_SSL_ENABLE'); $this->enableSSL = env('DB_SSL_ENABLE') ?? false;
if ($this->enableSSL === true || $this->enableSSL === 'true' || $this->enableSSL === 1 || $this->enableSSL === '1') { if ($this->enableSSL === true || $this->enableSSL === 'true' || $this->enableSSL === 1 || $this->enableSSL === '1') {

View File

@ -10,7 +10,7 @@ class CommissionApiFilter implements FilterInterface
{ {
public function before(RequestInterface $request, $arguments = null) public function before(RequestInterface $request, $arguments = null)
{ {
return null;
// Read API key from header // Read API key from header
// $authHeader = $request->getHeaderLine('X'); // $authHeader = $request->getHeaderLine('X');
$authHeader = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; $authHeader = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];