mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
DisableEmailNewDevice
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user