]> source.dussan.org Git - nextcloud-server.git/commit
fix: Handle exception when clearing previously removed two factor tokens backport/48933/stable29 49097/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 28 Oct 2024 09:15:16 +0000 (10:15 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 5 Nov 2024 10:49:31 +0000 (10:49 +0000)
commit4d9cc7dd8d95cdb212e0ce19e22ea53fdefff817
treebaebc731d56d662188f7e3d9695d46e29eb8418f
parent44ed7190279391004ba600a5631bb0a9ce8f1cfe
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