]> git.defcon.no Git - hermes/blobdiff - api/phone.php
First stab at auth. Flow-changes to make things sort'a work
[hermes] / api / phone.php
index 9437d66b47738961781d344ca57c5fd2172d5573..a47c4946ff9883924a16cf39bfd621adbf934c05 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');
@@ -17,6 +18,7 @@ if ( !$config['sql_link'] )
        print json_encode( array( 'response' => 'failed', 'cause' => 'error', 'detail' => 'Database connection failed.'));
        exit;
 }
+token_auth();
 
 //*************************************************************************************        
        switch ( $_SERVER['PATH_INFO'] )