parameters now are having a default value and are optional
This commit is contained in:
@@ -17,7 +17,7 @@ use PragmaRX\Google2FA\Google2FA;
|
||||
|
||||
class Index extends BaseSettingsModule
|
||||
{
|
||||
public static function post($parameters)
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
@@ -73,7 +73,7 @@ class Index extends BaseSettingsModule
|
||||
}
|
||||
}
|
||||
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa');
|
||||
|
||||
Reference in New Issue
Block a user