From: Kunal Mehta Date: Fri, 10 Jul 2015 16:20:43 +0000 (-0700) Subject: Add 'AuthPluginStrict' log to identify users who are unable to authenticate X-Git-Tag: 1.31.0-rc.0~10792 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=9a97a7530f2a637cbb95603cfa4e0b51da753207;p=lhc%2Fweb%2Fwiklou.git Add 'AuthPluginStrict' log to identify users who are unable to authenticate To be able to identify any users who are unable to log in when switching from allowing local authentication to strict. Change-Id: I2ebdccdad9c7794d1c1b13db6a646a43bc770c4e --- diff --git a/includes/User.php b/includes/User.php index 95ac0f1ed1..772330bb26 100644 --- a/includes/User.php +++ b/includes/User.php @@ -4005,6 +4005,7 @@ class User implements IDBAccessObject { return true; } elseif ( $wgAuth->strict() ) { // Auth plugin doesn't allow local authentication + wfDebugLog( 'AuthPluginStrict', "Authentication denied for {$this->getName()}" ); return false; } elseif ( $wgAuth->strictUserAuth( $this->getName() ) ) { // Auth plugin doesn't allow local authentication for this user name