]> source.dussan.org Git - nextcloud-server.git/commit
fix: Clear pending two factor tokens also from configuration
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 28 Oct 2024 09:14:29 +0000 (10:14 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 5 Nov 2024 10:50:29 +0000 (10:50 +0000)
commitc7b5c3e02f1d2f9d7dc49ee094cc4420673f4e9b
treebcb8e106ba3fd132710bc3ab77e856fd664973e0
parent29e17ab2f8717ae7478d654442cb6ae247742dfd
fix: Clear pending two factor tokens also from configuration

Otherwise as the tokens were removed from the database but not from the
configuration the next time that the tokens were cleared the previous
tokens were still got from the configuration, and trying to remove them
again from the database ended in a DoesNotExistException being thrown.

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