mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01:00
Add back provider keys on TwoFactorProviders response (#4991)
This commit is contained in:
parent
b5014ed6d8
commit
b07df10335
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user