Move PConfig::set() to DI::pConfig()->set()

This commit is contained in:
nupplaPhil
2020-01-18 16:54:50 +01:00
parent 9e9429b56d
commit 88bb66371c
17 changed files with 68 additions and 82 deletions

View File

@@ -37,7 +37,7 @@ class Index extends BaseSettingsModule
if (!$has_secret && !$verified) {
$Google2FA = new Google2FA();
PConfig::set(local_user(), '2fa', 'secret', $Google2FA->generateSecretKey(32));
DI::pConfig()->set(local_user(), '2fa', 'secret', $Google2FA->generateSecretKey(32));
DI::baseUrl()->redirect('settings/2fa/recovery?t=' . self::getFormSecurityToken('settings_2fa_password'));
}