Skip to content

Commit ef8945d

Browse files
authored
bugfix
1 parent e5cee8a commit ef8945d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,15 +2083,15 @@ public function executeCommand() {
20832083

20842084
// uncomment the lines below for token+session based authentication (see "login_token.html" + "login_token.php"):
20852085

2086-
// $auth = PHP_API_AUTH(array(
2086+
// $auth = new PHP_API_AUTH(array(
20872087
// 'secret'=>'someVeryLongPassPhraseChangeMe',
20882088
// ));
20892089
// $auth->executeCommand();
20902090
// if (empty($_SESSION['user'])) exit(403);
20912091

20922092
// uncomment the lines below for form+session based authentication (see "login.html"):
20932093

2094-
// $auth = PHP_API_AUTH(array(
2094+
// $auth = new PHP_API_AUTH(array(
20952095
// 'authenticator'=>function($user,$pass){ $_SESSION['user']=($user=='admin' && $pass=='admin'); }
20962096
// ));
20972097
// $auth->executeCommand();

0 commit comments

Comments
 (0)