X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=b12ba10287ce30e70852b59ad4fe344cd62f49cb;hb=f10481796778811d3ea4fab803508be3ffde84e4;hp=366f000a8a708f13abccf6f9c542f688067e5bd3;hpb=610f017b28edc37212df6385126993f2dfc41f59;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 366f000a8a..b12ba10287 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -1,29 +1,31 @@ -get_baseurl()); - } -} + + */ +class Logout extends BaseModule +{ + /** + * @brief Process logout requests + */ + public static function init() + { + Addon::callHooks("logging_out"); + Authentication::deleteSession(); + info(L10n::t('Logged out.') . EOL); + goaway(self::getApp()->getBaseURL()); + } +}