aboutsummaryrefslogtreecommitdiff
path: root/services/api
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-06 12:38:27 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-06 12:38:27 +0000
commit889401427a29567923784af90e085116df006015 (patch)
treea5e2f08f2281abb889f52eb2c8715a4cd3c83460 /services/api
parente38e82687bdb67eccadd46b2615df2baa4e0b7ce (diff)
downloadelgg-889401427a29567923784af90e085116df006015.tar.gz
elgg-889401427a29567923784af90e085116df006015.tar.bz2
strike previous - we need the password auth to get the user token - will just need to document that pam_auth_pass does not work with REST because the user credentials are not set
git-svn-id: http://code.elgg.org/elgg/trunk@3628 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'services/api')
-rw-r--r--services/api/rest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/services/api/rest.php b/services/api/rest.php
index 46931f8b5..8ac63022d 100644
--- a/services/api/rest.php
+++ b/services/api/rest.php
@@ -28,10 +28,7 @@ if ((isset($CONFIG->disable_api)) && ($CONFIG->disable_api == true)) {
}
// plugins should return true to control what API and user authentication handlers are registered
-if (trigger_plugin_hook('rest', 'init', null, false) == false) {
- // remove normal password pam (does not work by default with REST anyway)
- unregister_pam_handler('pam_auth_userpass');
-
+if (trigger_plugin_hook('rest', 'init', null, false) == false) {
// check session - this usually means a REST call from a web browser
register_pam_handler('pam_auth_session');
// user token can also be used for user authentication