mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05: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