<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
class Login extends BaseModule
{
- public static function content()
+ protected function content(array $request = []): string
{
$return_path = $_REQUEST['return_path'] ?? '' ;
return self::form(Session::get('return_path'), intval(DI::config()->get('config', 'register_policy')) !== \Friendica\Module\Register::CLOSED);
}
- public static function post()
+ protected function post(array $request = [])
{
$return_path = Session::get('return_path');
Session::clear();