mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-05 06:50:10 +00:00
feat: enhance two-factor authentication handling and UI improvements
This commit is contained in:
@@ -143,7 +143,7 @@ function readTwoFactorProviderTypes(providers: unknown): number[] {
|
||||
}
|
||||
} else if (providers && typeof providers === 'object') {
|
||||
for (const [key, value] of Object.entries(providers as Record<string, unknown>)) {
|
||||
if (!value) continue;
|
||||
if (value === false) continue;
|
||||
const providerType = twoFactorProviderTypeFromValue(key);
|
||||
if (providerType != null) providerTypes.push(providerType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user