Skip to content

Commit d2a2714

Browse files
committed
By pass auth for cli
1 parent 99dc626 commit d2a2714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function __autoload($class)
2323

2424
$authenticated = true;
2525

26-
if (isset(App::instance()->config['auth'])) {
26+
if (PHP_SAPI !== 'cli' && isset(App::instance()->config['auth'])) {
2727
$username = null;
2828
$password = null;
2929

0 commit comments

Comments
 (0)