Profile User::checkPassword
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 4 Sep 2014 18:02:34 +0000 (11:02 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 4 Sep 2014 18:02:34 +0000 (11:02 -0700)
Change-Id: I2e7e9574a56725f4e7c34415b241006a933f631d

includes/User.php

index 6b42994..942ba82 100644 (file)
@@ -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() ) {