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

* add HOOK_POST_LOGOUT

* auth_remote: add config option AUTH_REMOTE_POST_LOGOUT_URL
This commit is contained in:
Andrew Dolgov
2021-12-06 13:20:18 +03:00
parent 57b0413a3a
commit 53061d1508
4 changed files with 48 additions and 2 deletions

View File

@@ -670,4 +670,13 @@ abstract class Plugin {
return false;
}
/** Invoked after user logout, may override built-in behavior (redirect back to login page)
* @param string $login
* @param int $user_id
* @return array<mixed> - [0] - if set, url to redirect to
*/
function hook_post_logout($login, $user_id) {
return [""];
}
}