1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:05:55 +00:00

move logout_user() to UserHelper

This commit is contained in:
Andrew Dolgov
2021-02-14 15:31:03 +03:00
parent 2547ece0ca
commit a8cc43a0ff
4 changed files with 15 additions and 14 deletions

View File

@@ -286,7 +286,7 @@ class Handler_Public extends Handler {
function logout() {
if (validate_csrf($_POST["csrf_token"])) {
Pref_Users::logout_user();
UserHelper::logout();
header("Location: index.php");
} else {
header("Content-Type: text/json");