]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
say that it's OK to do OpenID login in private mode
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 15:16:43 +0000 (11:16 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 17:01:23 +0000 (13:01 -0400)
index.php
plugins/OpenID/OpenIDPlugin.php

index 372a8536ecb9144369e7a2b837d925dac25253d5..c1245136e917e185118e72589d6a96f3cdb1c94d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -107,8 +107,7 @@ function checkMirror($action_obj)
 
 function isLoginAction($action)
 {
-    static $loginActions =  array('login', 'openidlogin', 'finishopenidlogin',
-                                  'recoverpassword', 'api', 'doc', 'register');
+    static $loginActions =  array('login', 'recoverpassword', 'api', 'doc', 'register');
 
     $login = null;
 
index 199b1b3514af45e56af7ffb28a95acff65aa6300..fb6bc5cf8ead1822e5cf7e7de7729a922a6f9355 100644 (file)
@@ -129,4 +129,17 @@ class OpenIDPlugin extends Plugin
             return true;
         }
     }
+
+    function onLoginAction($action, &$login)
+    {
+        switch ($action)
+        {
+         case 'openidlogin':
+         case 'finishopenidlogin':
+            $login = true;
+            return false;
+         default:
+            return true;
+        }
+    }
 }