From a8da270698d3cfac3c5123bcbcaadb482a7aea5b Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 30 Sep 2018 16:17:27 +0200 Subject: [PATCH] Fix caller name in LocalPasswordPrimaryAuthenticationProvider Seeing {closure} in the logs as caller is not helpful Change-Id: I8dc921feb13432ed636686f918d8747ae71cf62b --- includes/auth/LocalPasswordPrimaryAuthenticationProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); } ); } -- 2.20.1