1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-27 17:47:37 +01:00

DisableEmailNewDevice

This commit is contained in:
Kyle Spearrin 2019-04-01 08:28:36 -04:00
parent 6c86996ab3
commit 7d47dac65f
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace Bit.Core
public virtual string InternalIdentityKey { get; set; }
public virtual string HibpBreachApiKey { get; set; }
public virtual bool DisableUserRegistration { get; set; }
public virtual bool DisableNewDeviceEmails { get; set; }
public virtual bool DisableEmailNewDevice { get; set; }
public virtual InstallationSettings Installation { get; set; } = new InstallationSettings();
public virtual BaseServiceUriSettings BaseServiceUri { get; set; } = new BaseServiceUriSettings();
public virtual SqlSettings SqlServer { get; set; } = new SqlSettings();

View File

@ -387,7 +387,7 @@ namespace Bit.Core.IdentityServer
{
var deviceType = device.Type.GetType().GetMember(device.Type.ToString())
.FirstOrDefault()?.GetCustomAttribute<DisplayAttribute>()?.GetName();
if(!_globalSettings.DisableNewDeviceEmails)
if(!_globalSettings.DisableEmailNewDevice)
{
await _mailService.SendNewDeviceLoggedInEmail(user.Email, deviceType, now,
_currentContext.IpAddress);