diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 14:54:14 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-20 21:01:16 +0200 |
commit | a34085e1a2b31c28157b1799e0bd4dfcbf9ab638 (patch) | |
tree | 000846f4758b7504bc8828a98b98e5fc53d4b299 /apps/twofactor_backupcodes | |
parent | 5ee9e1f78467d1004177012978160731606f204e (diff) | |
download | nextcloud-server-a34085e1a2b31c28157b1799e0bd4dfcbf9ab638.tar.gz nextcloud-server-a34085e1a2b31c28157b1799e0bd4dfcbf9ab638.zip |
Move 2fa backupscode to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes')
-rw-r--r-- | apps/twofactor_backupcodes/appinfo/info.xml | 6 | ||||
-rw-r--r-- | apps/twofactor_backupcodes/lib/AppInfo/Application.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/twofactor_backupcodes/appinfo/info.xml b/apps/twofactor_backupcodes/appinfo/info.xml index 0d50a66ea6a..513f7d0821a 100644 --- a/apps/twofactor_backupcodes/appinfo/info.xml +++ b/apps/twofactor_backupcodes/appinfo/info.xml @@ -5,7 +5,7 @@ <name>Two factor backup codes</name> <summary>A two-factor auth backup codes provider</summary> <description>A two-factor auth backup codes provider</description> - <version>1.10.0</version> + <version>1.10.1</version> <licence>agpl</licence> <author>Christoph Wurst</author> <namespace>TwoFactorBackupCodes</namespace> @@ -22,10 +22,6 @@ </post-migration> </repair-steps> - <two-factor-providers> - <provider>OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider</provider> - </two-factor-providers> - <activity> <providers> <provider>OCA\TwoFactorBackupCodes\Activity\Provider</provider> diff --git a/apps/twofactor_backupcodes/lib/AppInfo/Application.php b/apps/twofactor_backupcodes/lib/AppInfo/Application.php index 8751ccb8f6f..5dce6d3a8ee 100644 --- a/apps/twofactor_backupcodes/lib/AppInfo/Application.php +++ b/apps/twofactor_backupcodes/lib/AppInfo/Application.php @@ -36,6 +36,7 @@ use OCA\TwoFactorBackupCodes\Listener\ProviderEnabled; use OCA\TwoFactorBackupCodes\Listener\RegistryUpdater; use OCA\TwoFactorBackupCodes\Listener\UserDeleted; use OCA\TwoFactorBackupCodes\Notifications\Notifier; +use OCA\TwoFactorBackupCodes\Provider\BackupCodesProvider; use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; @@ -59,6 +60,9 @@ class Application extends App implements IBootstrap { $context->registerEventListener(IRegistry::EVENT_PROVIDER_ENABLED, ProviderEnabled::class); $context->registerEventListener(IRegistry::EVENT_PROVIDER_DISABLED, ProviderDisabled::class); $context->registerEventListener(UserDeletedEvent::class, UserDeleted::class); + + + $context->registerTwoFactorProvider(BackupCodesProvider::class); } public function boot(IBootContext $context): void { |