]> source.dussan.org Git - nextcloud-server.git/commit
Clear backupcodes reminder if no 2FA is enabled
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 5 Mar 2019 19:14:16 +0000 (20:14 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 5 Mar 2019 19:14:16 +0000 (20:14 +0100)
commit1c29a01956f13348281d29f276c8c37c85ed93e3
tree6afb5156374d3b303e39b894a97449f255c89524
parentc1c594f2ada4d18d0c73e0f590a2afcdf2032428
Clear backupcodes reminder if no 2FA is enabled

Fixes #14125

Listen to 2FA disable event. If a provider is disabled for a user. We
check if there are no more providers. If there are no more providers we
Remove the backupcode reminder notification (if still present).

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/twofactor_backupcodes/composer/composer/autoload_classmap.php
apps/twofactor_backupcodes/composer/composer/autoload_static.php
apps/twofactor_backupcodes/lib/AppInfo/Application.php
apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php [new file with mode: 0644]
apps/twofactor_backupcodes/tests/Unit/Listener/ProviderDisabledTest.php [new file with mode: 0644]