]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Security/Login.php
Merge pull request #11129 from urbalazs/copyright-2022
[friendica.git] / src / Module / Security / Login.php
index 5c47e97496e1324743e23b5d390946ea9643c271..080c3ef3caf9b4e2a40e98825d248c1ca363ba3a 100644 (file)
@@ -1,6 +1,6 @@
 <?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
  *
@@ -33,7 +33,7 @@ use Friendica\Module\Register;
  */
 class Login extends BaseModule
 {
-       public function content(): string
+       protected function content(array $request = []): string
        {
                $return_path = $_REQUEST['return_path'] ?? '' ;
 
@@ -46,7 +46,7 @@ class Login extends BaseModule
                return self::form(Session::get('return_path'), intval(DI::config()->get('config', 'register_policy')) !== \Friendica\Module\Register::CLOSED);
        }
 
-       public function post()
+       protected function post(array $request = [])
        {
                $return_path = Session::get('return_path');
                Session::clear();