mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
fix: harden the plugin runtime after the 2.9.0 security review
This commit is contained in:
1 parent
2961297989
commit
c6a44b7ff3
69 files changed
+4613
-312
No files matched your search
@@ -105,6 +105,9 @@ export async function evaluateSecondFactors(
|
||||
try {
|
||||
if (await factor.isEnrolled(userId)) required.set(key, factor);
|
||||
} catch (error) {
|
||||
// Unknown is not "not enrolled": the login stops instead of skipping
|
||||
// a factor the user may well have.
|
||||
blocked.push({ pluginId: factor.pluginId, factorId: factor.id });
|
||||
authLogger.warn("Second factor enrolment check failed", {
|
||||
operation: "second_factor_enrolment_check",
|
||||
factorId: factor.id,
|
||||
|
||||
Reference in new issue
Block a user