File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2083,15 +2083,15 @@ public function executeCommand() {
2083
2083
2084
2084
// uncomment the lines below for token+session based authentication (see "login_token.html" + "login_token.php"):
2085
2085
2086
- // $auth = PHP_API_AUTH(array(
2086
+ // $auth = new PHP_API_AUTH(array(
2087
2087
// 'secret'=>'someVeryLongPassPhraseChangeMe',
2088
2088
// ));
2089
2089
// $auth->executeCommand();
2090
2090
// if (empty($_SESSION['user'])) exit(403);
2091
2091
2092
2092
// uncomment the lines below for form+session based authentication (see "login.html"):
2093
2093
2094
- // $auth = PHP_API_AUTH(array(
2094
+ // $auth = new PHP_API_AUTH(array(
2095
2095
// 'authenticator'=>function($user,$pass){ $_SESSION['user']=($user=='admin' && $pass=='admin'); }
2096
2096
// ));
2097
2097
// $auth->executeCommand();
You can’t perform that action at this time.
0 commit comments