]> source.dussan.org Git - nextcloud-server.git/commit
fix: Handle exception when clearing previously removed two factor tokens backport/48933/stable28 49096/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:48:33 +0000 (10:48 +0000)
commitb39c5d8393fb155a490a2dba1709235dd828d377
treeb05cb83dff0492365aa40847f3b6e91f0b81b22d
parent56fc4341fb33984c797b16d1d937a57819731731
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