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

This commit is contained in:
nupplaPhil 2020-01-18 16:56:46 +01:00
parent 88bb66371c
commit b5c0df439f
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 10 additions and 23 deletions

View file

@ -45,8 +45,8 @@ class Index extends BaseSettingsModule
case 'disable':
if ($has_secret) {
RecoveryCode::deleteForUser(local_user());
PConfig::delete(local_user(), '2fa', 'secret');
PConfig::delete(local_user(), '2fa', 'verified');
DI::pConfig()->delete(local_user(), '2fa', 'secret');
DI::pConfig()->delete(local_user(), '2fa', 'verified');
Session::remove('2fa');
notice(L10n::t('Two-factor authentication successfully disabled.'));