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
Deprecate Parser implementation methods (will be private in next release)
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiLogout.php
diff --git
a/includes/api/ApiLogout.php
b/includes/api/ApiLogout.php
index
d56c096
..
d549e75
100644
(file)
--- a/
includes/api/ApiLogout.php
+++ b/
includes/api/ApiLogout.php
@@
-1,9
+1,5
@@
<?php
/**
<?php
/**
- *
- *
- * Created on Jan 4, 2008
- *
* Copyright © 2008 Yuri Astrakhan "<Firstname><Lastname>@gmail.com",
*
* This program is free software; you can redistribute it and/or modify
* Copyright © 2008 Yuri Astrakhan "<Firstname><Lastname>@gmail.com",
*
* This program is free software; you can redistribute it and/or modify
@@
-63,13
+59,25
@@
class ApiLogout extends ApiBase {
Hooks::run( 'UserLogoutComplete', [ &$user, &$injected_html, $oldName ] );
}
Hooks::run( 'UserLogoutComplete', [ &$user, &$injected_html, $oldName ] );
}
+ public function mustBePosted() {
+ return true;
+ }
+
+ public function needsToken() {
+ return 'csrf';
+ }
+
+ protected function getWebUITokenSalt( array $params ) {
+ return 'logoutToken';
+ }
+
public function isReadMode() {
return false;
}
protected function getExamplesMessages() {
return [
public function isReadMode() {
return false;
}
protected function getExamplesMessages() {
return [
- 'action=logout'
+ 'action=logout
&token=123ABC
'
=> 'apihelp-logout-example-logout',
];
}
=> 'apihelp-logout-example-logout',
];
}