Merge "api: Silence database write warnings from ApiLogout"
This commit is contained in:
commit
dd18be2a5e
1 changed files with 7 additions and 0 deletions
|
|
@ -67,6 +67,13 @@ class ApiLogout extends ApiBase {
|
|||
return 'csrf';
|
||||
}
|
||||
|
||||
public function isWriteMode() {
|
||||
// While core is optimized by default to not require DB writes on log out,
|
||||
// these are authenticated POST requests and extensions (eg. CheckUser) are
|
||||
// allowed to perform DB writes here without warnings.
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function getWebUITokenSalt( array $params ) {
|
||||
return 'logoutToken';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue