dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Convert article delete to use OOUI"
[lhc/web/wiklou.git]
/
includes
/
auth
/
AuthManager.php
diff --git
a/includes/auth/AuthManager.php
b/includes/auth/AuthManager.php
index
d88a5b2
..
c3f798f
100644
(file)
--- a/
includes/auth/AuthManager.php
+++ b/
includes/auth/AuthManager.php
@@
-24,6
+24,7
@@
namespace MediaWiki\Auth;
use Config;
namespace MediaWiki\Auth;
use Config;
+use MediaWiki\MediaWikiServices;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Status;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Status;
@@
-146,7
+147,7
@@
class AuthManager implements LoggerAwareInterface {
if ( self::$instance === null ) {
self::$instance = new self(
\RequestContext::getMain()->getRequest(),
if ( self::$instance === null ) {
self::$instance = new self(
\RequestContext::getMain()->getRequest(),
-
\ConfigFactory::getDefaultInstance()->makeConfig( 'main'
)
+
MediaWikiServices::getInstance()->getMainConfig(
)
);
}
return self::$instance;
);
}
return self::$instance;
@@
-1659,7
+1660,7
@@
class AuthManager implements LoggerAwareInterface {
}
}
}
}
- $backoffKey =
wfMemc
Key( 'AuthManager', 'autocreate-failed', md5( $username ) );
+ $backoffKey =
$cache->make
Key( 'AuthManager', 'autocreate-failed', md5( $username ) );
if ( $cache->get( $backoffKey ) ) {
$this->logger->debug( __METHOD__ . ': {username} denied by prior creation attempt failures', [
'username' => $username,
if ( $cache->get( $backoffKey ) ) {
$this->logger->debug( __METHOD__ . ': {username} denied by prior creation attempt failures', [
'username' => $username,