mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Added parameters
This commit is contained in:
parent
abe6724629
commit
bd62d548db
84 changed files with 172 additions and 177 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue