]> git.defcon.no Git - hermes/blobdiff - api/alias.php
First stab at auth. Flow-changes to make things sort'a work
[hermes] / api / alias.php
index 6451b2eef3efa52c774c1997afbd9b072df6f3e5..5bbdbf2c4a9e93b696b1f77c20284d5efb2d73fc 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/number_functions.php');
 require_once('lib/common_functions.php');
@@ -19,6 +20,8 @@ if ( !$config['sql_link'] )
        exit;
 }
 
+token_auth();
+
 //*************************************************************************************        
        switch ( $_SERVER['PATH_INFO'] )
        {