Make BaseModule methods dynamic
This commit is contained in:
@@ -36,7 +36,7 @@ class AppSpecific extends BaseSettings
|
||||
{
|
||||
private static $appSpecificPassword = null;
|
||||
|
||||
public static function init()
|
||||
public function init()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -54,7 +54,7 @@ class AppSpecific extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -97,7 +97,7 @@ class AppSpecific extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public function content(): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/app_specific');
|
||||
|
||||
@@ -33,7 +33,7 @@ use PragmaRX\Google2FA\Google2FA;
|
||||
|
||||
class Index extends BaseSettings
|
||||
{
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -94,7 +94,7 @@ class Index extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public function content(): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa');
|
||||
|
||||
@@ -34,7 +34,7 @@ use Friendica\Module\Security\Login;
|
||||
*/
|
||||
class Recovery extends BaseSettings
|
||||
{
|
||||
public static function init()
|
||||
public function init()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -52,7 +52,7 @@ class Recovery extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -69,7 +69,7 @@ class Recovery extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public function content(): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/recovery');
|
||||
|
||||
@@ -14,7 +14,7 @@ use UAParser\Parser;
|
||||
*/
|
||||
class Trusted extends BaseSettings
|
||||
{
|
||||
public static function init()
|
||||
public function init()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -32,7 +32,7 @@ class Trusted extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -64,7 +64,7 @@ class Trusted extends BaseSettings
|
||||
}
|
||||
|
||||
|
||||
public static function content(): string
|
||||
public function content(): string
|
||||
{
|
||||
parent::content();
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ use PragmaRX\Google2FA\Google2FA;
|
||||
*/
|
||||
class Verify extends BaseSettings
|
||||
{
|
||||
public static function init()
|
||||
public function init()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -58,7 +58,7 @@ class Verify extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -84,7 +84,7 @@ class Verify extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public function content(): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/verify');
|
||||
|
||||
Reference in New Issue
Block a user