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 font of mw-ui-button"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiEmailUser.php
diff --git
a/includes/api/ApiEmailUser.php
b/includes/api/ApiEmailUser.php
index
1a4d67d
..
d35b848
100644
(file)
--- a/
includes/api/ApiEmailUser.php
+++ b/
includes/api/ApiEmailUser.php
@@
-94,10
+94,6
@@
class ApiEmailUser extends ApiBase {
ApiBase::PARAM_TYPE => 'string',
ApiBase::PARAM_REQUIRED => true
),
ApiBase::PARAM_TYPE => 'string',
ApiBase::PARAM_REQUIRED => true
),
- 'token' => array(
- ApiBase::PARAM_TYPE => 'string',
- ApiBase::PARAM_REQUIRED => true
- ),
'ccme' => false,
);
}
'ccme' => false,
);
}
@@
-107,7
+103,6
@@
class ApiEmailUser extends ApiBase {
'target' => 'User to send email to',
'subject' => 'Subject header',
'text' => 'Mail body',
'target' => 'User to send email to',
'subject' => 'Subject header',
'text' => 'Mail body',
- 'token' => 'A token previously acquired via prop=info',
'ccme' => 'Send a copy of this mail to me',
);
}
'ccme' => 'Send a copy of this mail to me',
);
}
@@
-117,16
+112,12
@@
class ApiEmailUser extends ApiBase {
}
public function needsToken() {
}
public function needsToken() {
- return true;
- }
-
- public function getTokenSalt() {
- return '';
+ return 'csrf';
}
public function getExamples() {
return array(
}
public function getExamples() {
return array(
- 'api.php?action=emailuser&target=WikiSysop&text=Content'
+ 'api.php?action=emailuser&target=WikiSysop&text=Content
&token=123ABC
'
=> 'Send an email to the User "WikiSysop" with the text "Content"',
);
}
=> 'Send an email to the User "WikiSysop" with the text "Content"',
);
}