X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=f212a894029cd6e9279e41e1dd520ef8f56c68a6;hb=2a881cc2e71b1677cc9ce98001ae3f157743e542;hp=5c3035eed95bcf90e29808838ba5c68a1d7fa3a4;hpb=9a3e773a9a0464a309e4891f40c1105c8e2fed33;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 5c3035eed9..f212a89402 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -1,29 +1,32 @@ -get_baseurl()); - } -} \ No newline at end of file + + */ +class Logout extends BaseModule +{ + /** + * @brief Process logout requests + */ + public static function init() + { + Addon::callHooks("logging_out"); + Authentication::deleteSession(); + info(L10n::t('Logged out.') . EOL); + self::getApp()->internalRedirect(); + } +}