1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Add back provider keys on TwoFactorProviders response (#4991)

This commit is contained in:
Todd Martin 2024-11-06 18:12:59 -05:00 committed by GitHub
parent b5014ed6d8
commit b07df10335
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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