]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Settings/TwoFactor/Index.php
Move title attribute to <time> tag
[friendica.git] / src / Module / Settings / TwoFactor / Index.php
index 3bb3a2aa1f5e2145aedc09409cc8df96ebf98e56..0dcef14ad9deb17d55bf527f9f72946fdb608132 100644 (file)
@@ -33,7 +33,7 @@ use PragmaRX\Google2FA\Google2FA;
 
 class Index extends BaseSettings
 {
-       public static function post(array $parameters = [])
+       public function post()
        {
                if (!local_user()) {
                        return;
@@ -94,13 +94,13 @@ class Index extends BaseSettings
                }
        }
 
-       public static function content(array $parameters = [])
+       public function content(): string
        {
                if (!local_user()) {
                        return Login::form('settings/2fa');
                }
 
-               parent::content($parameters);
+               parent::content();
 
                $has_secret = (bool) DI::pConfig()->get(local_user(), '2fa', 'secret');
                $verified = DI::pConfig()->get(local_user(), '2fa', 'verified');