]> source.dussan.org Git - nextcloud-server.git/commit
fix: Handle exception when clearing previously removed two factor tokens clear-pending-two-factor-tokens-also-from-configuration 48933/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 28 Oct 2024 09:15:16 +0000 (10:15 +0100)
committerJoas Schilling <coding@schilljs.com>
Tue, 5 Nov 2024 10:14:05 +0000 (11:14 +0100)
commit5ea5b2de84fe21da0b3140d1df06f5098aa389a5
tree9c1ccaf97dc5235aac8c90b66a7ab68a80983017
parent381a2aa627dc99a353b9f6b4a75677811ee7d22b
fix: Handle exception when clearing previously removed two factor tokens

If a token was already removed from the database but not from the
configuration clearing the tokens will try to remove it again from the
database, which caused a DoesNotExistException to be thrown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
lib/private/Authentication/TwoFactorAuth/Manager.php
tests/lib/Authentication/TwoFactorAuth/ManagerTest.php