1
0
mirror of https://github.com/bitwarden/server synced 2026-01-05 10:03:23 +00:00

Add back provider keys on TwoFactorProviders response (#4991)

(cherry picked from commit b07df10335)
This commit is contained in:
Todd Martin
2024-11-06 18:12:59 -05:00
committed by Todd Martin
parent 360b5262db
commit 6862a9bbb8

View File

@@ -121,8 +121,8 @@ public class TwoFactorAuthenticationValidator(
var twoFactorResultDict = new Dictionary<string, object>
{
{ "TwoFactorProviders", null },
{ "TwoFactorProviders2", providers }, // backwards compatibility
{ "TwoFactorProviders", providers.Keys }, // backwards compatibility
{ "TwoFactorProviders2", providers },
};
// If we have email as a 2FA provider, we might need an SsoEmail2fa Session Token