]> git.defcon.no Git - hermes/blobdiff - api/user.php
First stab at auth. Flow-changes to make things sort'a work
[hermes] / api / user.php
index 101431769466154a51dd93381a7c6f445069c81a..a601d77fbff1ce9dbffc2436c5f0de0373e0cf2f 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 require_once('config.php');
+require_once('lib/auth_base.php');
 require_once('lib/user_functions.php');
 require_once('lib/common_functions.php');
 require_once('lib/db_functions.php');
@@ -18,6 +19,7 @@ if ( !$config['sql_link'] )
        print json_encode( array( 'response' => 'failed', 'cause' => 'error', 'detail' => 'Database connection failed.'));
        exit;
 }
+token_auth();
 
 //*************************************************************************************        
        switch ( $_SERVER['PATH_INFO'] )