]> git.defcon.no Git - hermes/blob - api/lib/auth.php
Added alias/list functionality! Also, moved some data around in lib/alias_functions...
[hermes] / api / lib / auth.php
1 <?php
2
3 function token_auth( )
4 {
5 return true;
6 }
7
8 if (! token_auth() )
9 {
10 print json_encode( array( 'response' => 'failed', 'cause' => 'unauthorized', 'description' => 'Not authorized') );
11 exit;
12 }
13 ?>