]> git.defcon.no Git - hermes/blob - lib/auth.php
2f8f9cf789c80cbb6d53c22cf6cbb3a11b33980a
[hermes] / 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 ?>