Skip to content

Commit

Permalink
Fixed issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lútsen Stellingwerff committed May 9, 2017
1 parent 785d76c commit ad7c4c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*/

// Make sure to add the missing details to the config.php file.
require '../config.php'; // Note: change this path if your Lagan project is in a subdirectory
require __DIR__.'/../config.php'; // Note: change this path if your Lagan project is in a subdirectory

// Include the configuration for RedBean and autoloaders.
require '../setup.php'; // Note: change this path if your Lagan project is in a subdirectory
require __DIR__.'/../setup.php'; // Note: change this path if your Lagan project is in a subdirectory

// Error reporting
if (ERROR_REPORTING) {
Expand Down Expand Up @@ -61,7 +61,7 @@

// Add HTTP Basic Authentication middleware
$app->add(new \Slim\Middleware\HttpBasicAuthentication([
'path' => ['/admin'],
'path' => $protected, // Defined in config.php
'secure' => true,
'relaxed' => ['localhost'],
'users' => $users // Defined in config.php
Expand Down

0 comments on commit ad7c4c5

Please sign in to comment.