From: Aaron Schulz Date: Thu, 4 Sep 2014 18:02:34 +0000 (-0700) Subject: Profile User::checkPassword X-Git-Tag: 1.31.0-rc.0~14164 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=4b3edb21bdce9a5445dd74b6cdede9d2f695fbd8;p=lhc%2Fweb%2Fwiklou.git Profile User::checkPassword Change-Id: I2e7e9574a56725f4e7c34415b241006a933f631d --- diff --git a/includes/User.php b/includes/User.php index 6b42994ef7..942ba82393 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3788,12 +3788,14 @@ class User implements IDBAccessObject { */ public function checkPassword( $password ) { global $wgAuth, $wgLegacyEncoding; + + $section = new ProfileSection( __METHOD__ ); + $this->loadPasswords(); // Certain authentication plugins do NOT want to save // domain passwords in a mysql database, so we should // check this (in case $wgAuth->strict() is false). - if ( $wgAuth->authenticate( $this->getName(), $password ) ) { return true; } elseif ( $wgAuth->strict() ) {