Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee authored Sep 2, 2016
1 parent e5cee8a commit ef8945d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2083,15 +2083,15 @@ public function executeCommand() {

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

// $auth = PHP_API_AUTH(array(
// $auth = new PHP_API_AUTH(array(
// 'secret'=>'someVeryLongPassPhraseChangeMe',
// ));
// $auth->executeCommand();
// if (empty($_SESSION['user'])) exit(403);

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

// $auth = PHP_API_AUTH(array(
// $auth = new PHP_API_AUTH(array(
// 'authenticator'=>function($user,$pass){ $_SESSION['user']=($user=='admin' && $pass=='admin'); }
// ));
// $auth->executeCommand();
Expand Down

0 comments on commit ef8945d

Please sign in to comment.