]> git.defcon.no Git - hermes/blob - lib/auth.php
Changed list node to provide more data. Added change_pw functionality/node. Changed...
[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 ?>