From: Umherirrender Date: Sun, 30 Sep 2018 14:17:27 +0000 (+0200) Subject: Fix caller name in LocalPasswordPrimaryAuthenticationProvider X-Git-Tag: 1.34.0-rc.0~3952 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=a8da270698d3cfac3c5123bcbcaadb482a7aea5b;p=lhc%2Fweb%2Fwiklou.git Fix caller name in LocalPasswordPrimaryAuthenticationProvider Seeing {closure} in the logs as caller is not helpful Change-Id: I8dc921feb13432ed636686f918d8747ae71cf62b --- diff --git a/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php b/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php index 86a6aae0ab..c538ee7e6d 100644 --- a/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php +++ b/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php @@ -136,7 +136,8 @@ class LocalPasswordPrimaryAuthenticationProvider // @codeCoverageIgnoreStart if ( $this->getPasswordFactory()->needsUpdate( $pwhash ) ) { $newHash = $this->getPasswordFactory()->newFromPlaintext( $req->password ); - \DeferredUpdates::addCallableUpdate( function () use ( $newHash, $oldRow ) { + $fname = __METHOD__; + \DeferredUpdates::addCallableUpdate( function () use ( $newHash, $oldRow, $fname ) { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'user', @@ -145,7 +146,7 @@ class LocalPasswordPrimaryAuthenticationProvider 'user_id' => $oldRow->user_id, 'user_password' => $oldRow->user_password ], - __METHOD__ + $fname ); } ); }