mirror of
https://github.com/bitwarden/server
synced 2026-01-05 01:53:17 +00:00
added two factor providers to user object
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
{
|
||||
public enum TwoFactorProviderType : byte
|
||||
{
|
||||
Authenticator = 0
|
||||
Authenticator = 0,
|
||||
Email = 1,
|
||||
Duo = 2,
|
||||
YubiKey = 3
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Bit.Core.Models.Table
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
public TwoFactorProviderType? TwoFactorProvider { get; set; }
|
||||
public string AuthenticatorKey { get; set; }
|
||||
public string TwoFactorProviders { get; set; }
|
||||
public string TwoFactorRecoveryCode { get; set; }
|
||||
public string EquivalentDomains { get; set; }
|
||||
public string ExcludedGlobalEquivalentDomains { get; set; }
|
||||
|
||||
12
src/Core/Models/TwoFactorProvider.cs
Normal file
12
src/Core/Models/TwoFactorProvider.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Bit.Core.Enums;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Bit.Core.Models
|
||||
{
|
||||
public class TwoFactorProvider
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
public bool Remember { get; set; }
|
||||
public Dictionary<string, object> MetaData { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user