X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=4ccba2d744f23188631b4626d817ea185fb17b78;hb=151c026a8aa5991c8f73b0974f479732c482cc45;hp=366f000a8a708f13abccf6f9c542f688067e5bd3;hpb=11cf36105ccd359c9d21a006e13b3767712196b6;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 366f000a8a..4ccba2d744 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -1,29 +1,30 @@ -get_baseurl()); - } -} + + */ +class Logout extends BaseModule +{ + /** + * @brief Process logout requests + */ + public static function init() + { + Hook::callAll("logging_out"); + Authentication::deleteSession(); + info(L10n::t('Logged out.') . EOL); + self::getApp()->internalRedirect(); + } +}