]> 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)
committerJoas Schilling <coding@schilljs.com>
Tue, 5 Nov 2024 10:14:04 +0000 (11:14 +0100)
commit381a2aa627dc99a353b9f6b4a75677811ee7d22b
treebb65e1e71cc0f639e852bd31df69194f242b8c64
parent46abfc6d5094b65d8595a2d9c69d76ea34f23f16
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