make _fake_auth static

Christof Meerwald via Phpwiki-talk <[email protected]> Tue, 23 Jan 2024 20:23:24 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
--SBRsI8qQsbI2mUZM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

There is a _HttpAuthPassUser::_fake_auth in WikiUser.php, so those
methods should probably be static, patch attached.


Christof

-- 

https://cmeerw.org                             sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

--SBRsI8qQsbI2mUZM
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="fake-auth.diff"

Index: lib/WikiUser/HttpAuth.php
===================================================================
--- lib/WikiUser/HttpAuth.php	(revision 11072)
+++ lib/WikiUser/HttpAuth.php	(working copy)
@@ -61,7 +61,7 @@
 
     // FIXME! This doesn't work yet!
     // Allow httpauth by other method: Admin for now only
-    public function _fake_auth($userid, $passwd)
+    public static function _fake_auth($userid, $passwd)
     {
         return false;
 
Index: lib/WikiUser/HttpAuthUpper.php
===================================================================
--- lib/WikiUser/HttpAuthUpper.php	(revision 11072)
+++ lib/WikiUser/HttpAuthUpper.php	(working copy)
@@ -62,7 +62,7 @@
 
     // FIXME! This doesn't work yet!
     // Allow httpauth by other method: Admin for now only
-    public function _fake_auth($userid, $passwd)
+    public static function _fake_auth($userid, $passwd)
     {
         return false;
 

--SBRsI8qQsbI2mUZM
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--SBRsI8qQsbI2mUZM
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Phpwiki-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-talk

--SBRsI8qQsbI2mUZM--