diff options
author | Andrew Dolgov <[email protected]> | 2024-02-21 22:13:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-02-21 22:13:23 +0300 |
commit | 81f31399929361d19fb3260a43aa35f9b6cf5105 (patch) | |
tree | 1a29923144aa6d9b5925a1745243e3861eba9e8f /classes/Plugin.php | |
parent | fc95c988cfbe3114fb13a86f9da7881b2babc80d (diff) |
add HOOK_VALIDATE_SESSION
Diffstat (limited to 'classes/Plugin.php')
-rw-r--r-- | classes/Plugin.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/Plugin.php b/classes/Plugin.php index d941a1616..cc50ae75e 100644 --- a/classes/Plugin.php +++ b/classes/Plugin.php @@ -706,4 +706,11 @@ abstract class Plugin { function hook_loginform_additional_buttons() { user_error("Dummy method invoked.", E_USER_ERROR); } + + /** Returns false if session is considered invalid, true cascades to next handler */ + function hook_validate_session(): bool { + user_error("Dummy method invoked.", E_USER_ERROR); + return false; + } + } |