1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 08:13:33 +00:00

EC-198 Added feature flag for 2FA Email for new device login (#1993)

* EC-198 added global setting flag for 2FA email on new device login feature

* EC-198 Removed is development environment check on 2FA email new device login given that we can now rely on the global settings feature flag

* EC-198 Improved IGlobalSettings and UserService code for testing
This commit is contained in:
Federico Maccaroni
2022-05-13 10:48:48 -03:00
committed by GitHub
parent bbb55ef8de
commit 2e2d3075d1
5 changed files with 28 additions and 21 deletions

View File

@@ -1,6 +1,4 @@
using static Bit.Core.Settings.GlobalSettings;
namespace Bit.Core.Settings
namespace Bit.Core.Settings
{
public interface IGlobalSettings
{
@@ -10,9 +8,11 @@ namespace Bit.Core.Settings
string LicenseDirectory { get; set; }
string LicenseCertificatePassword { get; set; }
int OrganizationInviteExpirationHours { get; set; }
bool DisableUserRegistration { get; set; }
IInstallationSettings Installation { get; set; }
IFileStorageSettings Attachment { get; set; }
IConnectionStringSettings Storage { get; set; }
IBaseServiceUriSettings BaseServiceUri { get; set; }
ITwoFactorAuthSettings TwoFactorAuth { get; set; }
}
}