Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit a89fd49

Browse files
committed
Ignore only database errors when inserting codes into blacklist
see c42c0c2 see #13
1 parent 287cf8d commit a89fd49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

file/lib/system/user/authentication/TwoFAHandler.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ public function validate($code, \wcf\data\user\User $user) {
101101
throw $e;
102102
}
103103
}
104+
catch (\wcf\system\database\DatabaseException $e2) {
105+
WCF::getDB()->rollbackTransaction();
106+
if (isset($e)) throw $e;
107+
}
104108
catch (\Exception $e) {
105109
WCF::getDB()->rollbackTransaction();
106110

0 commit comments

Comments
 (0)