X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=4ccba2d744f23188631b4626d817ea185fb17b78;hb=3c7e4b474b8f219b7ddacfd2c948d49628aafa81;hp=a03ef05c2e192d114e00b364bca241b7596a8f97;hpb=30c1cc0e8cec5438fd8fe36bd4ea00991dc01934;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index a03ef05c2e..4ccba2d744 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -1,31 +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(); + } +}