mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
Added parameters
This commit is contained in:
parent
abe6724629
commit
bd62d548db
84 changed files with 172 additions and 177 deletions
|
@ -20,7 +20,7 @@ use Friendica\Util\Strings;
|
|||
*/
|
||||
class Delegation extends BaseSettingsModule
|
||||
{
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
if (!local_user() || !empty(self::getApp()->user['uid']) && self::getApp()->user['uid'] != local_user()) {
|
||||
throw new HTTPException\ForbiddenException(L10n::t('Permission denied.'));
|
||||
|
@ -46,9 +46,9 @@ class Delegation extends BaseSettingsModule
|
|||
DBA::update('user', ['parent-uid' => $parent_uid], ['uid' => local_user()]);
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\ForbiddenException(L10n::t('Permission denied.'));
|
||||
|
|
|
@ -20,7 +20,7 @@ class AppSpecific extends BaseSettingsModule
|
|||
{
|
||||
private static $appSpecificPassword = null;
|
||||
|
||||
public static function init()
|
||||
public static function init($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -38,7 +38,7 @@ class AppSpecific extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -81,13 +81,13 @@ class AppSpecific extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/app_specific');
|
||||
}
|
||||
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
$appSpecificPasswords = AppSpecificPassword::getListForUser(local_user());
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ use PragmaRX\Google2FA\Google2FA;
|
|||
|
||||
class Index extends BaseSettingsModule
|
||||
{
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -73,13 +73,13 @@ class Index extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa');
|
||||
}
|
||||
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
$has_secret = (bool) PConfig::get(local_user(), '2fa', 'secret');
|
||||
$verified = PConfig::get(local_user(), '2fa', 'verified');
|
||||
|
|
|
@ -18,7 +18,7 @@ use Friendica\Module\Login;
|
|||
*/
|
||||
class Recovery extends BaseSettingsModule
|
||||
{
|
||||
public static function init()
|
||||
public static function init($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -36,7 +36,7 @@ class Recovery extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -53,13 +53,13 @@ class Recovery extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/recovery');
|
||||
}
|
||||
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
if (!RecoveryCode::countValidForUser(local_user())) {
|
||||
RecoveryCode::generateForUser(local_user());
|
||||
|
|
|
@ -24,7 +24,7 @@ use PragmaRX\Google2FA\Google2FA;
|
|||
*/
|
||||
class Verify extends BaseSettingsModule
|
||||
{
|
||||
public static function init()
|
||||
public static function init($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -43,7 +43,7 @@ class Verify extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public static function post($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -69,13 +69,13 @@ class Verify extends BaseSettingsModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('settings/2fa/verify');
|
||||
}
|
||||
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
$company = 'Friendica';
|
||||
$holder = Session::get('my_address');
|
||||
|
|
|
@ -32,9 +32,9 @@ class UserExport extends BaseSettingsModule
|
|||
* If there is an action required through the URL / path, react
|
||||
* accordingly and export the requested data.
|
||||
**/
|
||||
public static function content()
|
||||
public static function content($parameters)
|
||||
{
|
||||
parent::content();
|
||||
parent::content($parameters);
|
||||
|
||||
/**
|
||||
* options shown on "Export personal data" page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue