Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Don't use deprecated method#51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mohe2015 merged 1 commit intomainfromfixes
Jun 20, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletionssrc/AuthManagerOAuthPrimaryAuthenticationProvider.php
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,7 @@ public function getAuthenticationRequests( $action, array $options ) {
|| $action === \MediaWiki\Auth\AuthManager::ACTION_UNLINK ) ) {
$user = \User::newFromName( $options['username'] );
$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_REPLICA );
$dbr = $lb->getConnection( DB_REPLICA );
$result = $dbr->select(
'authmanageroauth_linked_accounts',
[ 'amoa_provider', 'amoa_remote_user' ],
Expand DownExpand Up@@ -98,7 +98,7 @@ public function providerChangeAuthenticationData( AuthenticationRequest $req ) {
|| $req->action === \MediaWiki\Auth\AuthManager::ACTION_UNLINK ) ) {
$user = \User::newFromName( $req->username );
$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_PRIMARY );
$dbr = $lb->getConnection( DB_PRIMARY );
$result = $dbr->delete(
'authmanageroauth_linked_accounts',
[
Expand DownExpand Up@@ -281,7 +281,7 @@ public function continuePrimaryAuthentication( array $reqs ) {
}

$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_REPLICA );
$dbr = $lb->getConnection( DB_REPLICA );

$result = $dbr->select(
'authmanageroauth_linked_accounts',
Expand DownExpand Up@@ -329,7 +329,7 @@ public function continuePrimaryAccountLink( $user, array $reqs ) {
}

$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_PRIMARY );
$dbr = $lb->getConnection( DB_PRIMARY );
$result = $dbr->insert(
'authmanageroauth_linked_accounts',
[
Expand DownExpand Up@@ -357,7 +357,7 @@ public function autoCreatedAccount( $user, $source ) {
$auth_data = $this->manager->getAuthenticationSessionData( self::AUTHENTICATION_SESSION_DATA_REMOTE_USER );
$this->manager->removeAuthenticationSessionData( self::AUTHENTICATION_SESSION_DATA_REMOTE_USER );
$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_PRIMARY );
$dbr = $lb->getConnection( DB_PRIMARY );
$result = $dbr->insert(
'authmanageroauth_linked_accounts',
[
Expand All@@ -380,7 +380,7 @@ public function finishAccountCreation( $user, $creator, AuthenticationResponse $
throw new LogicException( "Unexpected createRequest type {$request_class}. This should never happen." );
}
$lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
$dbr = $lb->getConnectionRef( DB_PRIMARY );
$dbr = $lb->getConnection( DB_PRIMARY );
$result = $dbr->insert(
'authmanageroauth_linked_accounts',
[
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp