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 "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiChangeAuthenticationData.php
diff --git
a/includes/api/ApiChangeAuthenticationData.php
b/includes/api/ApiChangeAuthenticationData.php
index
aea2819
..
c25920e
100644
(file)
--- a/
includes/api/ApiChangeAuthenticationData.php
+++ b/
includes/api/ApiChangeAuthenticationData.php
@@
-35,7
+35,7
@@
class ApiChangeAuthenticationData extends ApiBase {
public function execute() {
if ( !$this->getUser()->isLoggedIn() ) {
public function execute() {
if ( !$this->getUser()->isLoggedIn() ) {
- $this->die
Usage( 'Must be logged in to change authentication
data', 'notloggedin' );
+ $this->die
WithError( 'apierror-mustbeloggedin-changeauthentication
data', 'notloggedin' );
}
$helper = new ApiAuthManagerHelper( $this );
}
$helper = new ApiAuthManagerHelper( $this );
@@
-50,7
+50,7
@@
class ApiChangeAuthenticationData extends ApiBase {
$this->getConfig()->get( 'ChangeCredentialsBlacklist' )
);
if ( count( $reqs ) !== 1 ) {
$this->getConfig()->get( 'ChangeCredentialsBlacklist' )
);
if ( count( $reqs ) !== 1 ) {
- $this->die
Usage( 'Failed to create change
request', 'badrequest' );
+ $this->die
WithError( 'apierror-changeauth-no
request', 'badrequest' );
}
$req = reset( $reqs );
}
$req = reset( $reqs );