]> git.defcon.no Git - hermes/blob - api/lib/auth.php
Ooops on last commit. forgot to include a majority of the changes...
[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 ?>