X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=4ccba2d744f23188631b4626d817ea185fb17b78;hb=64f51d337f3999afe234537c3704211656718462;hp=0c8a617b224a39fcefce99a9e0a65f4934a7fc4c;hpb=c938623a3d7e947c3b979466253ba5708af3f6b4;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 0c8a617b22..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(); + } +}