aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/api/rest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/api/rest.php b/services/api/rest.php
index 41e44d9b2..15a7ad923 100644
--- a/services/api/rest.php
+++ b/services/api/rest.php
@@ -14,7 +14,7 @@
/**
* Start the Elgg engine
*/
- require_once('../engine/start.php');
+ require_once("../../engine/start.php");
global $CONFIG;
// Register the error handler
@@ -31,6 +31,8 @@
// Register some default PAM methods, plugins can add their own
register_pam_handler('pam_auth_session');
register_pam_handler('pam_auth_hmac');
+ register_pam_handler('pam_auth_usertoken', 'required'); // Either token present and valid OR method doesn't require one.
+ register_pam_handler('pam_auth_anonymous_method'); // Support anonymous functions
// Get parameter variables
$method = get_input('method');