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 "Fix 'Tags' padding to keep it farther from the edge and document the source...
[lhc/web/wiklou.git]
/
includes
/
auth
/
AuthManager.php
diff --git
a/includes/auth/AuthManager.php
b/includes/auth/AuthManager.php
index
2adc00e
..
3260ce4
100644
(file)
--- a/
includes/auth/AuthManager.php
+++ b/
includes/auth/AuthManager.php
@@
-240,7
+240,7
@@
class AuthManager implements LoggerAwareInterface {
global $wgAuth;
if ( $wgAuth && !$wgAuth instanceof AuthManagerAuthPlugin ) {
global $wgAuth;
if ( $wgAuth && !$wgAuth instanceof AuthManagerAuthPlugin ) {
- return
call_user_func_array( [ $wgAuth, $method ],
$params );
+ return
$wgAuth->$method( ...
$params );
} else {
return $return;
}
} else {
return $return;
}
@@
-771,7
+771,12
@@
class AuthManager implements LoggerAwareInterface {
$status = self::SEC_FAIL;
}
$status = self::SEC_FAIL;
}
- $this->logger->info( __METHOD__ . ": $operation is $status" );
+ $this->logger->info( __METHOD__ . ": $operation is $status for '{user}'",
+ [
+ 'user' => $session->getUser()->getName(),
+ 'clientip' => $this->getRequest()->getIP(),
+ ]
+ );
return $status;
}
return $status;
}
@@
-985,7
+990,7
@@
class AuthManager implements LoggerAwareInterface {
if ( $permErrors ) {
$status = Status::newGood();
foreach ( $permErrors as $args ) {
if ( $permErrors ) {
$status = Status::newGood();
foreach ( $permErrors as $args ) {
-
call_user_func_array( [ $status, 'fatal' ],
$args );
+
$status->fatal( ...
$args );
}
return $status;
}
}
return $status;
}
@@
-2427,7
+2432,7
@@
class AuthManager implements LoggerAwareInterface {
$providers += $this->getSecondaryAuthenticationProviders();
}
foreach ( $providers as $provider ) {
$providers += $this->getSecondaryAuthenticationProviders();
}
foreach ( $providers as $provider ) {
-
call_user_func_array( [ $provider, $method ],
$args );
+
$provider->$method( ...
$args );
}
}
}
}