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:
parent
c954a9fed5
commit
e7a9568900
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user