1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-11 15:17:44 +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 Cy Okeke
parent c954a9fed5
commit e7a9568900
No known key found for this signature in database
GPG Key ID: 88B341B55C84B45C

View File

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