]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
strike previous - we need the password auth to get the user token - will just need...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 6 Nov 2009 12:38:27 +0000 (12:38 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 6 Nov 2009 12:38:27 +0000 (12:38 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3628 36083f99-b078-4883-b0ff-0f9b5a30f544

services/api/rest.php

index 46931f8b549729ca9b920d84fb5e2786a1b1447f..8ac63022d07b0ba7c6283b93150e384266e1f1fe 100644 (file)
@@ -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